More CRUD
1. Which HTTP method would you use to update a record through an API?
You can create something new, read or view the newly created data, edit or update the data and finally the option to delete it.
2. Which REST methods require an ID parameter?
UPDATE and DELETE
1. What’s the relationship between REST and CRUD?
Using REST applications involves CRUD functions and data in REST applications can be Created, Read, Updated, and Deleted. CRUD maps to the HTTP methods used by REST APIs- GET, POST, DELETE, PUT, and PATCH
2. If you had to describe the process of creating a RESTful API in 5 steps, what would they be?
- Configure modules and packages. Add all necessary components to server.js
- Add route info in regards to creating GET, POST, PUT & DELETE requests.
- Add environment file and define port
- Define specifications, setup and connect database
- Verify that requests and responses are working properly