- Building RESTful Python Web Services
- Gastón C. Hillar
- 115字
- 2021-08-20 10:24:27
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
推薦閱讀
- Java系統(tǒng)分析與架構(gòu)設(shè)計(jì)
- PHP程序設(shè)計(jì)(慕課版)
- Practical DevOps
- Apache Mesos Essentials
- Python:Master the Art of Design Patterns
- JAVA程序設(shè)計(jì)實(shí)驗(yàn)教程
- Building Serverless Architectures
- 深入解析Java編譯器:源碼剖析與實(shí)例詳解
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Python程序設(shè)計(jì)教程
- Scrapy網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- Neo4j 3.x入門經(jīng)典
- Java語言程序設(shè)計(jì)實(shí)用教程(第2版)
- Clojure for Finance
- 分布式系統(tǒng)架構(gòu)與開發(fā):技術(shù)原理與面試題解析