- ApiDoc Api
- ApiDoc Define
- ApiDoc Deprecated
- ApiDoc Description
- ApiDoc Documentation
- ApiDoc Error Example
- ApiDoc Error Example
- ApiDoc Group
- ApiDoc Header
- ApiDoc Header Example
- ApiDoc Name
- ApiDoc Parameter
- ApiDoc Param Example
- ApiDoc Permission
- ApiDoc Sample Request
- ApiDoc Success
- ApiDoc Param Example
- ApiDoc Use
- ApiDoc Version
- comment code
@api {${method}} /${path} ${title}
@apiDefine ${name} ${title}
* ${description}
@apiDeprecated ${text}
@apiDescription ${text}
/**
*
* @api {${1:method}} /${2:path} ${3:title}
* @apiName ${4:apiName}
* @apiGroup ${5:group}
* @apiVersion ${6:major}.${7:minor}.${8:patch}
*
*
* @apiParam {${9:String}} ${10:paramName} ${11:description}
*
* @apiSuccess ${12:(${13:200})} {${14:type}} ${15:name} ${16:description}
*
* @apiParamExample {${17:type}} ${18:Request-Example:}
* {
* ${19:property} : ${20:value}
* }
*
*
* @apiSuccessExample {${21:type}} ${22:Success-Response:}
* {
* ${23:property} : ${24:value}
* }
*
*
*/
@apiErrorExample {${type}} ${title:Error-Response:}
${example}
@apiExample {${type}} ${title:Example usage:}
* ${example}
@apiGroup ${group}
@apiHeader ${group:(${code:200})} {${type}} ${field} ${description}
@apiHeaderExample {${type}} ${title:Request-Example:}
* ${example}
@apiName ${name}
@apiParam {${String}} ${name} ${description}
@apiParamExample {${type}} ${title:Request-Example:}
* ${example}
@apiPermission ${name}
@apiSampleRequest ${url}
@apiSuccess ${group:(${code:200})} {${type}} ${name} ${description}
@apiSuccessExample {${type}} ${title:Success-Response:}
* ${example}
@apiUse ${name}
@apiVersion ${major}.${minor}.${patch}
/**
* ${1}
*/
- Something is missing?
- If you have ideas on how to improve this project let us know.
- All contributions are welcome!