reading-notes

Course 301, Entry 13: More CRUD

CRUD Basics

Which HTTP method would you use to update a record through an API?

To update, the PUT HTTP method is ideal.

Which REST methods require an ID parameter?

To use the DELETE and UPDATE methods, an Id tag is needed.

Building a CRUD API

What’s the relationship between REST and CRUD?

CRUD is the accroynm for the operations. While REST is the actual HTTP methods.

If you had to describe the process of creating a RESTful API in 5 steps, what would they be?

  1. Create a Router
  2. Connect Database
  3. Set the schema
  4. Try Catch responses
  5. Validate

Things I want to know more about

Best practices of when to use various status codes.