Skip to content

Commit 665d99d

Browse files
committed
Add settings and DRF permission base page
1 parent 5a71cdc commit 665d99d

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ Index
3434
tutorial/tutorial
3535
rest-framework/rest-framework
3636
views/views
37+
settings
3738

3839
.. toctree::
3940
:maxdepth: 1
4041

4142
contributing
4243
changelog
4344

45+
4446
Indices and tables
4547
==================
4648

docs/rest-framework/permissions.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Permissions
2+
===========
3+
4+
Django OAuth Toolkit provides a few utility classes to use along with other permissions in Django REST Framework,
5+
so you can easily add scoped-based permission checks to your API views.
6+
7+
8+
9+
TokenHasScope
10+
-------------
11+
12+
TODO: add docs for TokenHasScope permission class with usage examples
13+
14+
15+
TokenHasReadWriteScope
16+
----------------------
17+
18+
TODO: add docs for TokenHasReadWriteScope permission class with usage examples

docs/rest-framework/rest-framework.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Django Rest Framework
55
:maxdepth: 2
66

77
getting_started
8+
permissions

docs/settings.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@ For example:
1818
}
1919
2020
21-
Reference
22-
=========
23-
2421
TODO: add reference documentation for DOT settings

0 commit comments

Comments
 (0)