APIs
What does REST stand for?
- Representational State Transfer.
REST APIs are designed around a __.
What is an identifer of a resource? Give an example.
- Objects, arrays, data ..etc
What are the most common HTTP verbs?
- GET, POST, PUT, PATCH, and DELETE.
What should the URIs be based on?
Give an example of a good URI.
- https://adventure-works.com/orders
What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?
- It’s when the API has a lot of small resources that you can request, and this is usually a bad thing.
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?
How would you match your name using RegEx?