reading-notes

Code Fellows courses Notes

This project is maintained by QamarAlkhatib

APIs

  1. What does REST stand for?
  1. REST APIs are designed around a resources

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

A resource has an identifier, which is a URI that uniquely identifies that resource. For example, the URI for a particular customer order might be:

https://adventure-works.com/orders/1

  1. What are the most common HTTP verbs?

GET, POST, PUT, PATCH, and DELETE

  1. What should the URIs be based on?
  1. Give an example of a good URI.

https://adventure-works.com/orders // Good

  1. What does it mean to have a ‘chatty’ web API? Is this a good or a bad thing?
  1. What status code does a successful GET request return?

code 200 (OK)

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

404 (Not Found)

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

status code 201 (Created)

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

status code 204 (No Content)

resource

Things I want to know more about