Hands-On RESTful Web Services with TypeScript 3
上QQ阅读APP看书,第一时间看更新

Questions

  1. What does the GET /users?offset=100&limit=20 operation do?
  2. What should the URL look like if the client wants to sort by first name and last name and use a GET method to get the user's endpoint?
  3. What are the three main items that describe a good resource naming convention?
  4. If I want to create an endpoint to retrieve just one user, should the URI be in singular form?
  5. What is the recommended strategy for API versioning?
  6. What are the five HTTP status code classes?
  7. If I call a DELETE method, which HTTP status code should be sent from the server side if DELETE succeeds?
  8. Which HTTP status code should be sent when there are too many requests?