reading-notes

My reading notes journal for Code Fellows

View the Project on GitHub

*Readings: APIs

API Design Best Practices

  1. What does REST stand for? Representational State Transfer.
  2. REST APIs are designed around a __. Resource. Which are any kind of object, data, or service that can be accessed by the client.
  3. What is an identifier of a resource? Give an example. a URI that uniquely identifies that resource. For example, the URI for a particular customer order might be: https://adventure-works.com/orders/1
  4. What are the most common HTTP verbs? GET, POST, PUT, PATCH, and DELETE.
  5. What should the URIs be based on? Nouns (the resource).
  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? APIs that expose a large number of small resources. It’s a bad thing.
  8. What status code does a successful GET request return? HTTP status code 200 (OK).
  9. What status code does an unsuccessful GET request return? HTTP status code 201 (Created).
  10. What status code does a successful POST request return? HTTP status code 201 (Created).
  11. What status code does a successful DELETE request return? HTTP status code 204 (No Content).

References

https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-design