An open API service indexing awesome lists of open source software.

https://github.com/zanjs/zanapi-node


https://github.com/zanjs/zanapi-node

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# zanApi

Generates a RESTful web API Documentation.

## Installation

`npm install zanapi -g`

## Example

```javascript
/**
* @api {get} /user/:id Request User information
* @apiName GetUser
* @apiGroup User
*
* @apiParam {Number} id Users unique ID.
*
* @apiSuccess {String} firstname Firstname of the User.
* @apiSuccess {String} lastname Lastname of the User.
*/
```

`zanapi -i example/ -o doc/`

Creates from input files in `example/` a documentation in path `doc/`.

## Supported programming languages

* **C#, Go, Dart, Java, JavaScript, PHP, Scala** (all DocStyle capable languages):

```javascript
/**
* This is a comment.
*/
```

* **Clojure**:

```clojure
;;;;
;; This is a comment.
;;;;
```

* **CoffeeScript**:

```coffeescript
###
This is a comment.
###
```

* **Erlang**:

```erlang
%{
This is a comment.
%}
```

* **Perl**

```perl
#**
# This is a comment.
#*
```

```perl
=pod
This is a comment.
=cut
```

* **Python**

```python
"""
This is a comment.
"""
```

* **Ruby**

```ruby
=begin
This is a comment.
=end
```