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

Chapter 3.  Improving and Adding Authentication to an API With Django

In this chapter, we will improve the RESTful API that we started in the previous chapter and also add authentication related security to it. We will:

  • Add unique constraints to the models
  • Update a single field for a resource with the PATCH method
  • Take advantage of pagination
  • Customize pagination classes
  • Understand authentication, permissions and throttling
  • Add security-related data to the models
  • Create a customized permission class for object-level permissions
  • Persist the user that makes a request
  • Configure permission policies
  • Set a default value for a new required field in migrations
  • Compose requests with the necessary authentication
  • Browse the API with authentication credentials
主站蜘蛛池模板: 平武县| 华亭县| 乃东县| 香港 | 青冈县| 监利县| 阆中市| 景德镇市| 崇明县| 旬阳县| 莱阳市| 任丘市| 三明市| 宁晋县| 洛川县| 平邑县| 双鸭山市| 眉山市| 漾濞| 巩义市| 揭西县| 双柏县| 灌南县| 信宜市| 海晏县| 怀来县| 桐乡市| 彰化市| 梅河口市| 太康县| 德钦县| 宣威市| 子洲县| 噶尔县| 古浪县| 唐河县| 章丘市| 阳泉市| 通海县| 内乡县| 达拉特旗|