项目作者: gracebodur
项目描述 :
Server-side programming with Node and Postgres Checkpoint 15-20
高级语言: JavaScript
项目地址: git://github.com/gracebodur/bookmarks-server.git
Bookmarks Server - Assignment!
Build an API for the Bookmarks client supporting GET, POST and DELETE.
Scripts
Start nodemon for the application npm run dev
Run the tests npm test
Requirements
Use the boilerplate to start a new application named bookmarks-server
- Configure logging and API key handling middleware on the server
- Write a route handler for the endpoint GET /bookmarks that returns a list of bookmarks
- Write a route handler for the endpoint GET /bookmarks/:id that returns a single bookmark with the given ID, return 404 Not Found if the ID is not valid
- Write a route handler for POST /bookmarks that accepts a JSON object representing a bookmark and adds it to the list of bookmarks after validation.
- Write a route handler for the endpoint DELETE /bookmarks/:id that deletes the bookmark with the given ID.