赞
踩
npm install express-generator -g
express --view=pug myapp
cd myapp && npm install
npm i supervisor -g
npm run dev
npm i apidoc -g
/** * @api {get} /user/:id Request User information * @apiName GetUser * @apiGroup User * * @apiParam {Number} id Users unique ID. * * @apiSuccess {String} firstname Firstname of the User. * @apiSuccess {String} lastname Lastname of the User. * * @apiSuccessExample Success-Response: * HTTP/1.1 200 OK * { * "firstname": "John", * "lastname": "Doe" * } * * @apiError UserNotFound The id of the User was not found. * * @apiErrorExample Error-Response: * HTTP/1.1 404 Not Found * { * "error": "UserNotFound" * } */
apidoc -i api/ -o public/apidoc/
http://localhost:5000
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。