- 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
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- Intel Galileo Essentials
- 深入理解Bootstrap
- Java入門經典(第6版)
- Photoshop智能手機APP UI設計之道
- 實戰(zhàn)Java程序設計
- 云原生Spring實戰(zhàn)
- 量化金融R語言高級教程
- 全棧自動化測試實戰(zhàn):基于TestNG、HttpClient、Selenium和Appium
- 從零開始學C語言
- Visual Basic程序設計
- Unity 2017 Mobile Game Development
- C語言開發(fā)基礎教程(Dev-C++)(第2版)
- Mastering Linux Security and Hardening
- C++寶典