CSE 135 Lecture Notes - Lecture 17: International Plant Names Index, Id1, Hypertext Transfer Protocol
Document Summary
Describes method of defining resources as urls and actions on those resources with http methods. Http methods as verbs on those nouns. Url - something you know (you type it in) Locations (where we get our information ) Pattern of the actions we might perform on a resource or piece of data. Simple idea but often the heart of apps built for business applications. Restful = in the spirit of rest than strictly conforming. No or few http verbs (mostly gets) Verb/action focused urls as opposed to entity/resource urls. Endpoints that do more than the typical crud actions or consolidate actions. Have to orchestrate many endpoints - just send to a giant api which will sort things out (aka a single endpoint) Submitted values should be sent in message body w/ appropriate content-type header: // creates a new book x-www-form-urlencoded or json. Note: cannot fall back if you go json!