apidoc-plugin-specs
v1.0.3
Published
Use apidoc to generate functional specifications in project
Downloads
5
Readme
apidoc-plugin-specs
Use apidocjs to edit functionnal specifications
install
npm i -D apidoc-plugin-specs
usage
same as apidoc but use specific template here
apidoc -t template -i example -o tmp
api
the directive @api is forced by apidoc we have to declare it, but nothing is saved
- @apiSpec {type} {groupe} Title
- type = "team || func"
- groupe overwrite definition @api
- title overwrite title and name from @api
- @apiSpecVersion overwrite @apiVersion
- @apiSpecTeam specify team éléments
- @apiSpecFunc define a fonctional specification
example
- Team
/**
* @api {spec} / SPEC Team
* @apiSpec {team} {groupTeam} titleTeam
* @apiSpecVersion 1.0.0
* @apiSpecTeam {service1} {role1} {2018-01-01} {---} Name1
* @apiSpecTeam {service2} {role2} {2018-02-03} {2018-03-04} Name2
*/
define block with contributors
- Functions
/**
* @api {spec} / SPEC Func
* @apiSpec {func} {groupFunc} titleFunc
* @apiSpecVersion 1.0.0
*
* @apiSpecFunc {specid_01} {2018-01-01} 1ère fonctionnalité
* specification détaillé
* - sur plusieurs ligne
* - qui précise ce qu'on veut
*
* @apiSpecFunc {specid_02} {2018-03-03} 2ème
* specification détaillé blabla
* - sur plusieurs ligne
* - qui précise ce qu'on veut
*
*/
define list of fonctional specifications