Reading-Notes

View the Project on GitHub MohammadAl-khatib/Reading-Notes

APIs

  1. What does REST stand for?

    • Representational State Transfer.
  2. REST APIs are designed around a resource.

  3. What is an identifer of a resource? Give an example.
    • The URL of the resource, like someone’s Facebook profile page link.
  4. What are the most common HTTP verbs?
    • GET, POST, PUT, PATCH, and DELETE.
  5. What should the URIs be based on?
    • The nouns (the resource) not the verbs (operations)
  6. Give an example of a good URI.
  7. What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?
    • A web API with alot of requests, it is better to combine resource data and minimize requests as possible.
  8. What status code does a successful GET request return?
    • 200
  9. What status code does an unsuccessful GET request return?
    • 404
  10. What status code does a successful POST request return?
    • 201
  11. What status code does a successful DELETE request return?
    • 204