- 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.
- BeagleBone Media Center
- Spring Boot+Spring Cloud+Vue+Element項目實戰(zhàn):手把手教你開發(fā)權(quán)限管理系統(tǒng)
- UML+OOPC嵌入式C語言開發(fā)精講
- Mastering Rust
- 你不知道的JavaScript(中卷)
- Learning Data Mining with R
- Swift Playgrounds少兒趣編程
- Troubleshooting Citrix XenApp?
- 深度探索Go語言:對象模型與runtime的原理特性及應(yīng)用
- Sails.js Essentials
- Arduino機器人系統(tǒng)設(shè)計及開發(fā)
- 從零開始:C語言快速入門教程
- Mastering ASP.NET Core 2.0
- Python數(shù)據(jù)科學(xué)實踐指南
- AngularJS Web Application Development Cookbook