reading-notes

301 Reading Notes

Class 8 Summary: This class is about APIs

What does REST stand for? Representational State Transfer (REST)

REST APIs are designed around a __. resources, which are any kind of object, data, or service that can be accessed by the client.

What is an identifier of a resource? Give an example. URI that uniquely identifies that resource.

What are the most common HTTP verbs? GET, POST, PUT, PATCH, and DELETE

What should the URIs be based on? use plural nouns for URIs

Give an example of a good URI. good practice to organize URIs for collections and items into a hierarchy.

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

What status code does a successful GET request return? A successful GET method typically returns HTTP status code 200 (OK).

What status code does an unsuccessful GET request return? 404 (Not Found).

What status code does a successful POST request return? HTTP status code 200

What status code does a successful DELETE request return? HTTP status code 204 (No Content),

Sources

https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-design

bookmarks

https://regexr.com/

https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285

https://regex101.com/

Things I want to know more about