reading-notes

Class 13 Notes

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

PUT

Which REST methods require an ID parameter?

PUT and DELETE

What’s the relationship between REST and CRUD?

Rest is a style for designing networks and is used to bild systems and using rest follows stadard http methods which perform CRUD operations

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

  1. create your endpoints and determine which methods need to be used to get each resource
  2. design the api and choose the data formats (json)
  3. create roues and write the CRUD operations
  4. handle all errors and authentication/authorization
  5. test endpoints and document the API’s