RESTful web API Documentation Generator
-
- Clojure
- Clojure indented 1
- CoffeeScript
- CoffeeScript indented 1
- CoffeeScript indented 2
- Erlang
- Erlang indented 1
- Erlang indented 2
- JavaScript
- JavaScript indented 1
- JavaScript indented 2
- Perl
- Perl indented 1
- Perl indented 2
- Perl comment with pod and cut
- Python
- Python indented 1
- Python indented 2
- Ruby
- Ruby indented 1
- Ruby indented 2
Enable markdown for all description fields.
This text is in a separate p.
- List 1
- List 2
Multiline markdown text, output in one line.
GET /markdown/:id
Name | Type | Description |
---|---|---|
param1 | String |
This is a markdown apiParam Separate line. |
Extended usage of @apiExample with different example types.
GET /example/
PHP Example (new)
echo 'This is the content. (new)';
JS Example
console.log('This is the content.');
echo 'This is the success content. (new)';
console.log('This is the success content.');
echo 'This is the error content.';
console.log('This is the error content.');
Example of @apiDefine and @apiUse
GET /define
Name | Type | Description |
---|---|---|
field3 | This is Field 3 (local). |
|
field1 | This is Field 1. |
|
field2 | This is Field 2. |
This is a deprecated hint with a link to the new method.
GET /deprecated/bar/:id
Name | Type | Description |
---|---|---|
param1 | Parameter and description. |
This is a simple deprecated hint.
GET /deprecated/foo/:id
Name | Type | Description |
---|---|---|
param1 | Parameter and description. |
Escape Example data.
GET /test/escape
Example usage:
curl -i http://localhost/escape/text
<b>curl -i http://localhost/escape/html</b>
<xml>curl -i http://localhost/escape/xml</xml>
HTTP/1.1 200 OK {
field_text: 'text-value',
field_html: '<b>html-value</b>',
field_xml: '<xml>xml-value</xml>'
}
GET /group/:id
Title and Grouping of param, success and error
GET /test/:id
Name | Type | Description |
---|---|---|
param1 | String |
No Group, automatically set Group to "Parameter" |
Name | Type | Description |
---|---|---|
param2 | String |
Group "login" |
param3 | String |
Group "login" with default Value Default value: Default Value |
Name | Type | Description |
---|---|---|
success2 | String |
Group "201" |
success3 | String |
Group "201" with default Value Default value: Default Value |
Name | Type | Description |
---|---|---|
success1 | String |
No Group, automatically set "Success 200" |
Name | Type | Description |
---|---|---|
error2 | String |
Undefined Group "400" |
Name | Type | Description |
---|---|---|
error3 | String |
Group "401" |
Name | Type | Description |
---|---|---|
error1 | String |
No Group automatically set "Error 4xx" |
Test for @apiHeader (same as @apiParam)
GET /header/:id
Name | Type | Description |
---|---|---|
header1 | String |
Parameter with type and description. |
header2 | String |
|
header3 | String |
Parameter with type, description and default value. |
header4 | String |
|
header5 | Basic Parameter with description. |
|
header6 | ||
header7 | Basic Parameter with description and default value. |
|
header8 | ||
header9 | optional Optional basic Parameter with description. |
|
header10 | optional | |
header11 | optional Optional basic Parameter with description and default value. |
|
header12 | optional | |
header13 | String |
optional Optional Parameter with type and description. |
header14 | String |
optional |
header15 | String |
optional Optional Parameter with type, description and default value. |
header16 | String |
optional |
Usage of @headerExample.
GET /header/example/
An example:
curl -i http://localhost/header/example/
Test for Clojure Comment-Syntax.
GET /language/clojure
GET /language/clojure/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for CoffeeScript Comment-Syntax.
GET /language/coffeescript
GET /language/coffeescript/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/coffeescript/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for Erlang Comment-Syntax.
GET /language/erlang
GET /language/erlang/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/erlang/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for JavaScript Comment-Syntax.
GET /language/javascript
GET /language/javascript/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/javascript/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for Perl Comment-Syntax.
GET /language/perl
GET /language/perl/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/perl/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/perl/podcut
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for Python Comment-Syntax.
GET /language/python
GET /language/python/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/python/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Test for Ruby Comment-Syntax.
GET /language/ruby
GET /language/ruby/indented1
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
GET /language/ruby/indented2
Test for indented comment.
This is example line 2.
This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
Returned error parameters. Syntax is the same as for @apiParam
GET /param/:id
Name | Type | Description |
---|---|---|
error1Error | This is Error 1. |
|
error2Error | This is Error 2. |
Parameters and different Versions: 0.1.1
GET /param/:id
Name | Type | Description |
---|---|---|
param1 | Parameter and description. |
|
param2 | ||
param3 | Parameter, default value and description. Default value: Default Value |
|
param4 | Default value: Default Value |
|
param5 | optional Optional parameter and description. |
|
param6 | optional | |
param7 | optional Optional parameter, default value and description. Default value: Default Value |
|
param8 | optional Default value: Default Value |
|
param9 | String |
Type, parameter and description. |
param10 | String |
|
param11 | String |
Type, parameter and default value. Default value: Default Value |
param12 | String |
Default value: Default Value |
param13 | String |
optional Type, optional parameter and description. |
param14 | String |
optional |
param15 | String |
optional Type, optional parameter, default value and description. Default value: Default Value |
param26 | String |
optional Default value: Default Value |
param17 | String |
Type, size, parameter and description. Size range: 4,8 |
param18 | Number |
Type, size, parameter and description. Size range: 1-3 |
param19 | String |
Type, size, parameter, default value and description. Default value: Default ValueSize range: 4,8 |
param20 | Number |
Type, size, parameter, default value and description. Default value: 1Size range: 1-3 |
param21 | String |
Type, parameter and allowed string value. Allowed values: "value 1" |
param22 | String |
Type, parameter and allowed list of string values. Allowed values: "value 1","value 2" |
param23 | Number |
Type, parameter and allowed value. Allowed values: 4711 |
param24 | Number |
Type, parameter and allowed list of values. Allowed values: 4711,4712 |
param25 | String |
Type, size, parameter and allowed string value. Size range: 1,10Allowed values: "value 1" |
param27 | Number |
Type, size, parameter and allowed value. Size range: 1-9999Allowed values: 4711 |
param28 | Number |
Type, size, parameter and allowed list of values. Size range: 1-9999Allowed values: 4711,4712 |
param29 | <a href="http://en.wikipedia.org/wiki/Data_type">Custom</a> |
Type with markdown link. |
Usage of @apiParamExample.
GET /param/example/
Name | Type | Description |
---|---|---|
name | String |
Fullname. |
A common example:
curl -i http://localhost/param/example/
json
- A JSON example:
{
"name": "John Doe"
}
Returned success parameters. Syntax is the same as for @apiParam
GET /param/:id
Name | Type | Description |
---|---|---|
success1 | This is Success 1. |
|
success2 | This is Success 2. |
@apiPermission test.
GET /permission/
Text line 1 (Begin: 4xSpaces (3 removed)). Text line 2 (Begin: 3xSpaces (3 removed), End: 2xSpaces).
GET /indent/trim/multi/spaces
Text line 1 (Begin: 3xTab (2 removed)). Text line 2 (Begin: 2x Tab (2 removed), End: 1xTab).
GET /indent/trim/multi/tabs
Text line 1 (Begin: 1xTab, 2xSpaces). Text line 2 (Begin: 3xSpaces, End: 1xTab).
GET /indent/trim/multi/tabs/and/space
Text line 1 (Begin: 3xSpaces (3 removed), End: 1xSpace).
GET /indent/trim/single
text.
GET /indent/word