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

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
主站蜘蛛池模板: 班玛县| 全椒县| 铜鼓县| 库尔勒市| 巴里| 米脂县| 松原市| 庆元县| 尉氏县| 奉化市| 元氏县| 定兴县| 兴隆县| 正安县| 岳阳县| 靖西县| 高邮市| 朔州市| 东乡族自治县| 南通市| 新乐市| 忻城县| 山东省| 丰原市| 平原县| 台南县| 长治县| 青神县| 海城市| 天柱县| 卓资县| 江北区| 南平市| 江口县| 西安市| 河曲县| 南通市| 隆子县| 馆陶县| 同江市| 芜湖县|