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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.