API’s
-
What does REST stand for? Representational State Transfer
-
REST APIs are designed around a ____. Resources, which are ant kind of object, data., or service that can be accessed by the client.
-
What is an identifier of a resource? Give an example. A url that uniquely identifies that resource. Ex:
https://adventure-works.com/orders/1
-
What are the most common HTTP verbs? Get, put, post, patch, delete
-
What should the URIs be based on? One atomic operation
-
Give an example of a good URI.
https://adventure-works.com/orders // Good
-
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
-
What status code does a successful GET request return? 200
-
What status code does an unsuccessful GET request return? 404
-
What status code does a successful POST request return? 201
-
What status code does a successful DELETE request return? 204