Which HTTP method would you use to update a record through an API?
To update a record through an API, you would use the HTTP PUT
method.
Which REST methods require an ID parameter?
The REST methods that require an ID parameter are GET
, PUT
, DELETE
.
Speed Coding: Building a CRUD API (Watch a Twitch streamer code an Express API in 20 minutes!)
What’s the relationship between REST and CRUD?
CRUD
(Create, Read, Update, Delete) is a set of basic operations used to manage data in a database. REST
(Representational State Transfer) is an architectural style that is used to design web services. The relationship between REST and CRUD is that CRUD operations can be mapped to RESTful HTTP methods, where each operation maps to a specific HTTP method.
If you had to describe the process of creating a RESTful API in 5 steps, what would they be?
GET
, POST
, PUT
, DELETE
).