Created
January 26, 2021 18:39
-
-
Save zerefdev/903d0844aec30c721a97a7098fcf1fce to your computer and use it in GitHub Desktop.
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
Show hidden characters
{ | |
"apidoc boilerplate": { | |
"scope": "javascript, typescript", | |
"prefix": "apidoc", | |
"body": [ | |
"/**", | |
" * @api {$1} /$2/$3 $4", | |
" * @apiVersion 1.0.0", | |
" * @apiName $1-$3", | |
" * @apiGroup $2", | |
" * @apiPermission $5", | |
" *", | |
" * @apiParam (Body) {String} $0", | |
" * ", | |
" * @apiSuccessExample Success:", | |
" * HTTP/1.1 200 OK", | |
" * {", | |
" * \"message\": \"message\",", | |
" * }", | |
" * ", | |
" * @apiErrorExample Error - Validation:", | |
" * HTTP/1.1 400 Bad Request", | |
" * ", | |
" * {", | |
" * \"error\": \"message\"", | |
" * }", | |
" * ", | |
" * @apiSampleRequest off", | |
" */" | |
], | |
"description": "generates apidoc boilerplate" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment