REST in Plain Words
REST in Plain Words: REST: Resources, Endpoints and Methods, Routing by Hand, and Why Frameworks Exist.
Updated
- REST: Resources, Endpoints and Methods (Apprentice): A REST API names each kind of thing it holds with a plural noun, such as /plots for every plot and /plots/7 for one, lets the HTTP method be the verb, answers each action with the status code that fits it, and never changes anything on a GET.
- Routing by Hand, and Why Frameworks Exist (Apprentice): A plain Python function can answer requests by checking each one's method and path with if statements and returning a status code and a body, and seeing that code grow with every route shows the jobs a framework such as FastAPI takes over.