Readings: More CRUD
CRUD Basics
Which HTTP method would you use to update a record through an API?
put() and patch()
Which REST methods require an ID parameter?
delete() and put()
Speed Coding: Building a CRUD API
What’s the relationship between REST and CRUD?
In its base form, CRUD is a way of manipulating information, describing the function of an application.
REST is controlling data through HTTP commands. It is a way of creating, modifying,
and deleting information for the user. CRUD functions can exist in a REST API,
but REST APIs are not limited to CRUD functions.
If you had to describe the process of creating a RESTful API in 5 steps, what would they be?
- npx create a starter server
- import modules and dependencies
- create DB schema
- creates CRUD routes
- test routes