View on GitHub

reading-notes

My learning journal for Code Fellows

API’s

  1. What does REST stand for? Representational State Transfer

  2. REST APIs are designed around a ____. Resources, which are ant 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 url that uniquely identifies that resource. Ex: https://adventure-works.com/orders/1

  4. What are the most common HTTP verbs? Get, put, post, patch, delete

  5. What should the URIs be based on? One atomic operation

  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? A chatty URI is a web API that exposes a large number of small resources. This is a bad thing to have in your code

  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