More CRUD
Index
Home
CRUD Basics
Speed Coding: Building a CRUD API
CRUD Basics
- Which HTTP method would you use to update a record through an API?
Update
- Which REST methods require an ID parameter?
UpdateandDelete
Speed Coding: Building a CRUD API
- What’s the relationship between REST and CRUD?
- REST is an architectural system centered around resources and Hypermedia using HTTP commands. CRUD is a cycle meant to maintain records in a database setting. In its base form, CRUD is a way of manipulating information, describing the function of an application. REST is controlling data through HTTP commands.
- If you had to describe the process of creating a RESTful API in 5 steps, what would they be?
- Bring in required dependencies
- Setup routes and endpoints
- Create Schema and Models
- Build out CRUD
- Get all
- Get One
- Create One
- Update One
- Delete One
- Setup validation and perform some testing