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

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
主站蜘蛛池模板: 南康市| 新绛县| 肇东市| 原平市| 梓潼县| 卓资县| 芒康县| 漾濞| 铁岭县| 新兴县| 古丈县| 察雅县| 株洲县| 湟源县| 丰都县| 夏河县| 应用必备| 灌南县| 蚌埠市| 彭泽县| 大冶市| 偃师市| 马鞍山市| 潜山县| 柳林县| 唐山市| 洛川县| 华池县| 中宁县| 汤原县| 榕江县| 东丰县| 四川省| 中西区| 罗田县| 宁河县| 郎溪县| 自贡市| 得荣县| 叙永县| 宽城|