Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

Todo API with the authorization header

We will use the JWT token returned by the login API and set the authorization header. The value of the authorization header will be JWT <token>. Now, let's execute the API with CRUD operations.

The GET request looks as follows:

Here, we got the list of all todo records available in the database. We gained access as we set the authorization header.

The POST request looks as follows:

Here, we created a new todo record and got the response with a status code of 201. Now, with the base URL, we can execute ...

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

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content