1.1.1 • Published 7 years ago

apidoc-plugin-example-ext v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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.

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago