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?
- create your endpoints and determine which methods need to be used to get each resource
- design the api and choose the data formats (json)
- create roues and write the CRUD operations
- handle all errors and authentication/authorization
- test endpoints and document the API’s