APIs
API Design Best Practices
1. What does REST stand for?
Representational State Transfer.
2. REST APIs are designed around a __.
resources
3. What is an identifer of a resource? Give an example.
Objects, arrays, data ..etc
4. What are the most common HTTP verbs?
GET, POST, PUT, PATCH, and DELETE.
5. What should the URIs be based on?
nouns
6. Give an example of a good URI.
https://adventure-works.com/orders
7. 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.
8. What status code does a successful GET
request return?
200
9. What status code does an unsuccessful GET
request return?
406
10. What status code does a successful POST
request return?
201
11. What status code does a successful DELETE
request return?
204
12. How would you match your name using RegEx?
^Emam$ ?
Get back to EMAM’S HOMEPAGE
I have created this page as a part of my project using Github, Please visit my profile, I will be more than happy to hear from you all. © Emam Shararah 2021