reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

API Design Best Practices

  1. What does REST stand for?
    • Representational State Transfer (REST) This is an architectural way to design web services
  2. REST APIs are designed around a __.
    • Resources
  3. What is an identifier of a resource? Give an example.
    • this would be a URL https://this-is-my-url.com/hereismyidentifier
  4. What are the most common HTTP verbs?
    • GET, POST, PUT, PATCH, and DELETE.
  5. What should the URIs be based on?
  6. Give an example of a good URI.
    • https://adventure-works.com/orders // Good
  7. What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?
    • Having to make constant request to an api is chatty this is also a larger load
  8. What status code does a successful GET request return?
    • HTTP status code 200
  9. What status code does an unsuccessful GET request return?
    • 404 not found
  10. What status code does a successful POST request return?
    • 201 created
  11. What status code does a successful DELETE request return?
    • 204 no content