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.
0.2.0 Extend apiParam, apiSuccess, apiError with a grouping ability.
Add new Functions: apiParamTitle, apiSuccessTitle, apiErrorTitle
- Loading branch information
Showing
39 changed files
with
1,564 additions
and
519 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
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
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
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
// Same as @apiparam | ||
var apiParam = require("./parser_api_param.js"); | ||
|
||
function parse(content, source) | ||
{ | ||
return apiParam.parse(content, source, "Error 4xx"); | ||
} | ||
|
||
function pushTo() | ||
{ | ||
return "local.error.fields"; | ||
return "local.error.fields." + apiParam.getGroup(); | ||
} | ||
|
||
/** | ||
* Exports. | ||
*/ | ||
module.exports = { | ||
parse: apiParam.parse, | ||
parse: parse, | ||
pushTo: pushTo | ||
}; |
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,21 @@ | ||
var apiParser = require("./parser_api_param_title.js"); | ||
|
||
function parse(content, source) | ||
{ | ||
return apiParser.parse(content, source); | ||
} // parse | ||
|
||
function pushTo() | ||
{ | ||
return "global.errorTitle"; | ||
} | ||
|
||
/** | ||
* Exports. | ||
*/ | ||
module.exports = { | ||
parse: parse, | ||
pushTo: pushTo, | ||
getGroup: apiParser.getGroup, | ||
allowMultiple: true | ||
}; |
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
// Same as @apiparam | ||
var apiParam = require("./parser_api_param.js"); | ||
|
||
function parse(content, source) | ||
{ | ||
return apiParam.parse(content, source, "Info"); | ||
} | ||
|
||
function pushTo() | ||
{ | ||
return "local.info.fields"; | ||
return "local.info.fields." + apiParam.getGroup(); | ||
} | ||
|
||
/** | ||
* Exports. | ||
*/ | ||
module.exports = { | ||
parse: apiParam.parse, | ||
parse: parse, | ||
pushTo: pushTo | ||
}; |
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,21 @@ | ||
var apiParser = require("./parser_api_param_title.js"); | ||
|
||
function parse(content, source) | ||
{ | ||
return apiParser.parse(content, source); | ||
} // parse | ||
|
||
function pushTo() | ||
{ | ||
return "global.infoTitle"; | ||
} | ||
|
||
/** | ||
* Exports. | ||
*/ | ||
module.exports = { | ||
parse: parse, | ||
pushTo: pushTo, | ||
getGroup: apiParser.getGroup, | ||
allowMultiple: true | ||
}; |
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
Oops, something went wrong.