REST definition and best practices

Before getting into the details of REST, let's look at an example. With a client—in this case, a web browser—and a server, the client sends a request to the server over HTTP for some models, as follows:

The server will then respond with a document containing all the models, as follows:

The client can then modify the data on the server through a PUT HTTP request, as follows:

Then, the server will respond that ...

Get Mastering Flask Web Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.