官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 新安县| 大兴区| 农安县| 虞城县| 黄骅市| 江津市| 睢宁县| 正定县| 乌兰浩特市| 沭阳县| 深圳市| 嘉鱼县| 郯城县| 磐安县| 洪洞县| 佛山市| 新干县| 巴彦淖尔市| 河东区| 轮台县| 禄丰县| 郎溪县| 平陆县| 兰坪| 怀宁县| 塘沽区| 招远市| 长白| 孝义市| 天镇县| 新沂市| 临湘市| 正镶白旗| 盈江县| 西乌| 图片| 江门市| 乐都县| 日土县| 赤水市| 东光县|