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

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
主站蜘蛛池模板: 宜兴市| 昭通市| 定兴县| 金昌市| 河东区| 金华市| 镇雄县| 麻栗坡县| 三门峡市| 武义县| 青神县| 吉林省| 民县| 水富县| 岚皋县| 都兰县| 璧山县| 昌吉市| 江口县| 永吉县| 九江县| 张家界市| 淮滨县| 孙吴县| 册亨县| 静乐县| 上蔡县| 石台县| 西平县| 股票| 岱山县| 沙坪坝区| 仪征市| 通城县| 怀安县| 元朗区| 巴林左旗| 平潭县| 云林县| 汉寿县| 沙洋县|