forked from apidoc/apidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
533 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/multi_input_folder/fixtures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
define({ "api": [ | ||
{ | ||
"type": "post", | ||
"url": "/api/authenticate", | ||
"title": "", | ||
"version": "0.3.0", | ||
"group": "Authentication", | ||
"name": "Authenticate", | ||
"parameter": { | ||
"fields": { | ||
"Credentials": [ | ||
{ | ||
"group": "Credentials", | ||
"type": "<p>String</p> ", | ||
"optional": false, | ||
"field": "username", | ||
"description": "<p>Username</p> " | ||
}, | ||
{ | ||
"group": "Credentials", | ||
"type": "<p>String</p> ", | ||
"optional": false, | ||
"field": "password", | ||
"description": "<p>password</p> " | ||
} | ||
] | ||
} | ||
}, | ||
"filename": "src/test_api.js", | ||
"groupTitle": "Authentication", | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "get", | ||
"url": "/api/subscriptioninfo", | ||
"title": "", | ||
"version": "0.3.0", | ||
"description": "<p>Get the subscription information from an authenticated user.</p> ", | ||
"group": "Authentication", | ||
"name": "GetSubscriptionInfo", | ||
"filename": "src/test_api.js", | ||
"groupTitle": "Authentication", | ||
"header": { | ||
"fields": { | ||
"Header": [ | ||
{ | ||
"group": "Header", | ||
"type": "String", | ||
"optional": false, | ||
"field": "Authorization", | ||
"description": "<p>Auth header with JWT Token</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "Authorization-Example:", | ||
"content": "Authorization: Bearer <jwt-token>", | ||
"type": "String" | ||
} | ||
] | ||
}, | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "get", | ||
"url": "/api/subscriptioninfo/:userid", | ||
"title": "", | ||
"version": "0.2.0", | ||
"description": "<p>Get the subscription information for a user.</p> ", | ||
"parameter": { | ||
"fields": { | ||
"Parameter": [ | ||
{ | ||
"group": "Parameter", | ||
"type": "<p>Number</p> ", | ||
"optional": false, | ||
"field": "userid", | ||
"description": "<p>user id</p> " | ||
} | ||
] | ||
} | ||
}, | ||
"group": "Authentication", | ||
"name": "GetSubscriptionInfo", | ||
"filename": "folder2/History.js", | ||
"groupTitle": "Authentication", | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
} | ||
] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
[ | ||
{ | ||
"type": "post", | ||
"url": "/api/authenticate", | ||
"title": "", | ||
"version": "0.3.0", | ||
"group": "Authentication", | ||
"name": "Authenticate", | ||
"parameter": { | ||
"fields": { | ||
"Credentials": [ | ||
{ | ||
"group": "Credentials", | ||
"type": "<p>String</p> ", | ||
"optional": false, | ||
"field": "username", | ||
"description": "<p>Username</p> " | ||
}, | ||
{ | ||
"group": "Credentials", | ||
"type": "<p>String</p> ", | ||
"optional": false, | ||
"field": "password", | ||
"description": "<p>password</p> " | ||
} | ||
] | ||
} | ||
}, | ||
"filename": "src/test_api.js", | ||
"groupTitle": "Authentication", | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "get", | ||
"url": "/api/subscriptioninfo", | ||
"title": "", | ||
"version": "0.3.0", | ||
"description": "<p>Get the subscription information from an authenticated user.</p> ", | ||
"group": "Authentication", | ||
"name": "GetSubscriptionInfo", | ||
"filename": "src/test_api.js", | ||
"groupTitle": "Authentication", | ||
"header": { | ||
"fields": { | ||
"Header": [ | ||
{ | ||
"group": "Header", | ||
"type": "String", | ||
"optional": false, | ||
"field": "Authorization", | ||
"description": "<p>Auth header with JWT Token</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "Authorization-Example:", | ||
"content": "Authorization: Bearer <jwt-token>", | ||
"type": "String" | ||
} | ||
] | ||
}, | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "get", | ||
"url": "/api/subscriptioninfo/:userid", | ||
"title": "", | ||
"version": "0.2.0", | ||
"description": "<p>Get the subscription information for a user.</p> ", | ||
"parameter": { | ||
"fields": { | ||
"Parameter": [ | ||
{ | ||
"group": "Parameter", | ||
"type": "<p>Number</p> ", | ||
"optional": false, | ||
"field": "userid", | ||
"description": "<p>user id</p> " | ||
} | ||
] | ||
} | ||
}, | ||
"group": "Authentication", | ||
"name": "GetSubscriptionInfo", | ||
"filename": "folder2/History.js", | ||
"groupTitle": "Authentication", | ||
"error": { | ||
"fields": { | ||
"500 Internal Server Error": [ | ||
{ | ||
"group": "500 Internal Server Error", | ||
"optional": false, | ||
"field": "InternalServerError", | ||
"description": "<p>The server encountered an internal error</p> " | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"title": "500 Internal Server Error", | ||
"content": "HTTP/1.1 500 Internal Server Error\n{\n \"uri\": \"<api-endpoint>\",\n \"method\": \"<method used>\",\n \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\n \"title\": \"Internal Server Error\",\n \"status\": 500,\n \"detail\": \"<Detail Message>\"\n}", | ||
"type": "json" | ||
} | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
define({ | ||
"name": "Multiple Input Folder Test", | ||
"version": "1.0.0", | ||
"description": "Example of feeding apidoc from multiple input folder locations", | ||
"sampleUrl": false, | ||
"apidoc": "0.2.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2015-05-08T10:26:38.294Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.12.3" | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "Multiple Input Folder Test", | ||
"version": "1.0.0", | ||
"description": "Example of feeding apidoc from multiple input folder locations", | ||
"sampleUrl": false, | ||
"apidoc": "0.2.0", | ||
"generator": { | ||
"name": "apidoc", | ||
"time": "2015-05-08T10:26:38.294Z", | ||
"url": "http://apidocjs.com", | ||
"version": "0.12.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>apiDoc</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
</head> | ||
<body> | ||
|
||
Empty Test Template. | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.