Readings: APIs

Readings: APIs

What does REST stand for?

Representational State Transfer.

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?

URIs be based on nouns and not verbs.

Give an example of a good URI.

https://adventure-works.com/orders

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

bad.

What status code does a successful GET request return?

200 (OK).

What status code does an unsuccessful GET request return?

404 (Not Found).

What status code does a successful POST request return?

201 (Created).

What status code does a successful DELETE request return?

204 (No Content).

To know more please visit this page