reading_notes

Read: Class 07 - REST:

What is REST API?

The term REST stands for Representational State Transfer. It is an architectural style that defines a set of rules in order to create Web Services.

How I explained REST to my brother?

Who is Roy Fielding?

Computer scientist, helped write the first web servers he did a ton of research explaining why the web works the way it does. His name is on the specification for the protocol.

Why don’t the techniques that we use today work well when we need to be able to talk to all of the machines in the world?

Because Machines don’t have a universal nouns.

What is the HTTP protocol that Fielding and his friends created?

Hypertext transfer protocol is the way in which clients and servers communicate with each other, request and receive information.

What does a GET do?

Retrieve data from the server (read only)

What does a POST do?

Sends data to the server and creates a new resource. (create a new data entry.)

What does PUT do?

Update an existing resource.

What does PATCH do?

modifies an existing resource (only needs to contain the specific changes to the resource).