View on GitHub

reading-notes

APIs

API Design Best Practices

  1. What does REST stand for?

2.REST APIs are designed around a __.

3.What is an identifer of a resource? Give an example.

4.What are the most common HTTP verbs?

image

5.What should the URIs be based on? a version number

6.Give an example of a good URI.

uri

7.What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?

8.What status code does a successful GET request return?

2xx successful – the request was successfully received, understood, and accepted

9.What status code does an unsuccessful GET request return?

5xx server error – the server failed to fulfil an apparently valid request

10.What status code does a successful POST request return?

11.What status code does a successful DELETE request return?

A successful response of DELETE requests SHOULD be HTTP response code 200 (OK) if the response includes an entity describing the status, 202 (Accepted) if the action has been queued, or 204 (No Content) if the action has been performed but the response does not include an entity