apidoc-plugin-example-ext
v1.1.1
Published
modify apidoc-plugin-example to fix bug to adapt personal requirment.
Downloads
3
Readme
apidoc-plugin-example-ext
Generates and inject apidoc example elements from api schemas or files.
@apiExample {SCHEMA_TYPE=PATH_TO_SCHEMA} ELEMENT_TYPE TITLE
Install
npm install apidoc-plugin-example-ext -g
Supported Schema Types
json
Prettifies JSON and injects in.
Example Use
/**
* @api {get} /api GetAPI
* @apiExampleExt {json=./ex/api.req.json} apiParamExample Request
* @apiExampleExt {jsonschema=./ex/api.res.json} apiSuccessExample Success-Response
*/
Developer Note
This plugin uses parser-find-elements
@ priority 202
.