RESTFUL API - Nodejs Express Mongoose Postman
Endpoint | Function |
---|---|
/api/books/:id | Find book by id |
/api/genres/ | Find all genres |
/api/genres/:id | Find genre by id |
Endpoint | Function |
---|---|
/api/books/ | Add new book |
/api/genres/ | Add new genres |
Endpoint | Function |
---|---|
/api/books/:id | Update existing book |
/api/genres/:id | Update existing genre |
Endpoint | Function |
---|---|
/api/books/:id | Delete existing book |
/api/genres/:id | Delete existing genre |
Clone the repo
Run npm install
Test endpoints & routes with Postman or RestEasy