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

Summary

In this chapter, we took advantage of many features included in Django REST Framework that allow us to eliminate duplicate code and build our API reusing generalized behaviors. We used model serializers, wrappers, default parsing and rendering options, class-based views, and generic classes.

We used the browsable API feature and we designed a RESTful API that interacted with a complex PostgreSQL 10.5 database. We declared relationships with the models, and we configured serialization and deserialization with hyperlinks. Finally, we created and retrieved related resources and understood how things work under the hood.

Now that we built a complex API with Django REST Framework that we can encapsulate in a microservice, we will use additional ...

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