- 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.
- 工程軟件開發技術基礎
- CentOS 7 Server Deployment Cookbook
- JIRA 7 Administration Cookbook(Second Edition)
- Python自然語言處理(微課版)
- Learning Python Design Patterns(Second Edition)
- C語言程序設計實踐教程
- 秒懂設計模式
- PLC編程及應用實戰
- Apache Spark 2.x for Java Developers
- 零基礎學C語言程序設計
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- 零基礎學HTML+CSS
- Unity 2017 Game AI Programming(Third Edition)
- Modernizing Legacy Applications in PHP
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理