【文件属性】:
文件名称:nodejs-demo:Node JS和Express JS API样板
文件大小:86KB
文件格式:ZIP
更新时间:2021-05-07 19:06:29
nodejs demo expressjs node-boilerplate node-api
APP网址
http://localhost:8000/
API URL
所有的员工
// Request Method: GET
http: //localhost:8000/api/employees
员工编号
// Request Method: GET
http://localhost:8000/api/employee/id
员工编号
// Request Method: POST
http://localhost:8000/api/employee/create
// Body
{
" name " : " John Doe " ,
" salary " : 2000 ,
" age " : 29
}
// Response
{
" success " : true ,
" data " : {
" name " : "
【文件预览】:
nodejs-demo-master
----.gitignore(152B)
----.env.test(123B)
----README.md(713B)
----bin()
--------www(2KB)
----.github()
--------ISSUE_TEMPLATE()
----.env(122B)
----test()
--------employee.test.js(1012B)
----public()
--------stylesheets()
----LICENSE(1KB)
----app.js(1KB)
----package.json(555B)
----src()
--------routes()
--------views()
--------controllers()
----CODE_OF_CONDUCT.md(3KB)
----yarn.lock(187KB)