Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Understanding the tasks performed by each HTTP method

Let's consider that http://localhost:8888/hexacopters/1 is the URL that identifies the hexacopter for our drone.

PATCH http://localhost:8888/hexacopters/1 

We have to compose and send an HTTP request with the HTTP verb (PATCH) and request URL (http://localhost:8888/hexacopters/1) to set the hexacopter's status and motor speed in RPMs. In addition, we have to provide the JSON key-value pairs with the necessary field name and the value to specify the desired speed. As a result of the request, the server will validate the provided values for the field, make sure that it is a valid speed, and make the necessary calls to adjust the speed with an asynchronous execution. After the speed for the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content