- 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
推薦閱讀
- Google Flutter Mobile Development Quick Start Guide
- Instant Testing with CasperJS
- PHP基礎案例教程
- Apache Hive Essentials
- SQL語言從入門到精通
- 大學計算機基礎(第2版)(微課版)
- Python Data Analysis Cookbook
- Scala Data Analysis Cookbook
- Visual Basic 6.0程序設計實驗教程
- Cocos2d-x Game Development Blueprints
- Android智能手機APP界面設計實戰教程
- Puppet Cookbook(Third Edition)
- C語言從入門到精通(微視頻精編版)
- INSTANT Apache Maven Starter
- JavaScript程序設計實例教程(第2版)