Reading-notes

APIs

What does REST stand for?

as an architectural approach to designing web services. REST is an architectural style for building distributed systems based on hypermedia

## REST APIs are designed around a? resources

## What is an identifer of a resource? Give an example?

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

## What are the most common HTTP verbs?

GET, POST, PUT, PATCH, and DELETE.

## What should the URIs be based on?

nouns (the resource) and not verbs

## Give an example of a good URI?

   https://tiles.locationiq.com/v3/<theme>/<type>.json?key=<access_token>

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

expose a large number of small resources.

What status code does a successful GET request return?

200

What status code does an unsuccessful GET request return?

400

What status code does a successful POST request return?

200

What status code does a successful DELETE request return?

200