- Django RESTful Web Services
- Gaston C. Hillar
- 139字
- 2021-06-30 19:30:59
Summary
In this chapter, we designed a RESTful Web Service to interact with a simple SQLite database and perform CRUD operations with toys. We defined the requirements for our web service and we understood the tasks performed by each HTTP method and the different scopes.
We created a model to represent and persist toys, and we executed migrations in Django to create the required tables in an SQLite database. We analyzed the tables that Django generated. We learned to manage serialization of toy instances into JSON representations with Django REST framework and the reverse process.
Now that we understand models, migrations, serialization, and deserialization with Django and Django REST framework, we will create Django views combined with serializer classes and start making HTTP requests to our web service. We will cover these topics in Chapter 3, Creating API Views.
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- 移動UI設計(微課版)
- Windows系統管理與服務配置
- Practical Internet of Things Security
- 機械工程師Python編程:入門、實戰與進階
- 自然語言處理Python進階
- MATLAB 2020從入門到精通
- Android玩家必備
- Instant Lucene.NET
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- OpenStack Networking Essentials
- Serverless Web Applications with React and Firebase
- 零基礎學Scratch 3.0編程
- Learning Grunt
- 量子計算機編程:從入門到實踐