- Building RESTful Python Web Services
- Gastón C. Hillar
- 138字
- 2021-08-20 10:24:27
Summary
In this chapter, we took advantage of the various features included in Django REST Framework that allowed 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 database. We declared relationships with the models, managed serialization and deserialization with relationships, and hyperlinks. Finally, we created and retrieved related resources and we understood how things work under the hoods.
Now that we have built a complex API with Django REST Framework, we will use additional abstractions included in the framework to improve our API, we will add security and authentication, which is what we are going to discuss in the next chapter.
- UNIX編程藝術
- Progressive Web Apps with React
- JavaScript 從入門到項目實踐(超值版)
- Visual Studio 2012 Cookbook
- 青少年軟件編程基礎與實戰(圖形化編程三級)
- Java 9 Programming Blueprints
- NumPy Essentials
- Building Minecraft Server Modifications
- Java 11 Cookbook
- SQL經典實例(第2版)
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Web App Testing Using Knockout.JS
- ASP.NET Web API Security Essentials
- WildFly Cookbook
- Backbone.js Patterns and Best Practices