REST
Explaining REST
How I explained REST to my brother
- Roy Fieldling helped write the first web servers
- “Because they weren’t designed to be used like that. When Fielding and his colleagues started building the web, being able to talk to any machine anywhere in the world was a primary concern. But most of the techniques developers later used to get computers to talk to each other didn’t have those requirements. You just needed to talk to a small group of machines.”
- “is all about applying verbs to nouns. For instance, when you go to a web page, the browser does an HTTP GET on the URL you typed in and back comes a web page.”
- Get “gets things”. hard to describe an action with an action
- POST adds something to other systems
- likewise PUT replaces things in other systems or a “partial update”
- PATCH is used to determine what the data model should look like.