Read: Class 08 - Readings: APIs
Reading
API Design Best Practices
- What does REST stand for?
- Representational State Transfer
- REST APIs are designed around a __.
- What is an identifier of a resource? Give an example.
- resources have an identifier, which is a URI that uniquely identifies that resource
- https://adventure-works.com/orders/1
- What are the most common HTTP verbs?
- GET, POST, PUT, PATCH, DELETE
- What should the URIs be based on?
- unique identification and meaningful descriptions
- Give an example of a good URI.
- https://axéallday.com/bookings/teambuilding/let-us-play
- What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?
- a ‘chatty” API is a bad thing because it exposes the server to a large number of small resources
- What status code does a successful GET request return?
- What status code does an unsuccessful GET request return?
- What status code does a successful POST request return?
- What status code does a successful DELETE request return?