- 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.
- 摩登創客:與智能手機和平板電腦共舞
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- 我的第一本算法書
- 深入淺出Windows API程序設計:編程基礎篇
- Python編程與幾何圖形
- Windows Forensics Cookbook
- UML 基礎與 Rose 建模案例(第3版)
- 基于Struts、Hibernate、Spring架構的Web應用開發
- CoffeeScript Application Development Cookbook
- 軟件測試綜合技術
- Spring 5 Design Patterns
- 從零開始學Android開發
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- 30天學通C#項目案例開發
- 從零開始學UI:概念解析、實戰提高、突破規則