| 1 |
site_name: Django REST framework |
| 2 |
site_url: https://www.django-rest-framework.org/ |
| 3 |
site_description: Django REST framework - Web APIs for Django |
| 4 |
|
| 5 |
repo_url: https://github.com/encode/django-rest-framework |
| 6 |
|
| 7 |
theme: |
| 8 |
name: material |
| 9 |
custom_dir: docs/theme |
| 10 |
favicon: theme/img/favicon.ico |
| 11 |
logo: theme/img/logo.png |
| 12 |
palette: |
| 13 |
- media: "(prefers-color-scheme)" |
| 14 |
primary: custom |
| 15 |
accent: custom |
| 16 |
toggle: |
| 17 |
icon: material/brightness-auto |
| 18 |
name: "Switch to light mode" |
| 19 |
- media: "(prefers-color-scheme: light)" |
| 20 |
scheme: default |
| 21 |
primary: custom |
| 22 |
accent: custom |
| 23 |
toggle: |
| 24 |
icon: material/brightness-7 |
| 25 |
name: "Switch to dark mode" |
| 26 |
- media: "(prefers-color-scheme: dark)" |
| 27 |
scheme: slate |
| 28 |
primary: custom |
| 29 |
accent: custom |
| 30 |
toggle: |
| 31 |
icon: material/brightness-4 |
| 32 |
name: "Switch to system preference" |
| 33 |
features: |
| 34 |
- content.tabs.link |
| 35 |
- content.code.annotate |
| 36 |
- content.code.copy |
| 37 |
- navigation.tabs |
| 38 |
- navigation.tabs.sticky |
| 39 |
- navigation.instant |
| 40 |
- navigation.instant.prefetch |
| 41 |
- navigation.instant.progress |
| 42 |
- navigation.path |
| 43 |
- navigation.sections |
| 44 |
- navigation.top |
| 45 |
- navigation.tracking |
| 46 |
- search.suggest |
| 47 |
- toc.follow |
| 48 |
|
| 49 |
extra_css: |
| 50 |
- theme/stylesheets/extra.css |
| 51 |
- theme/stylesheets/prettify.css |
| 52 |
extra_javascript: |
| 53 |
- theme/js/prettify-1.0.js |
| 54 |
|
| 55 |
markdown_extensions: |
| 56 |
- admonition |
| 57 |
- attr_list |
| 58 |
- toc: |
| 59 |
permalink: true |
| 60 |
- pymdownx.highlight: |
| 61 |
pygments_lang_class: true |
| 62 |
- pymdownx.inlinehilite |
| 63 |
- pymdownx.snippets |
| 64 |
- pymdownx.superfences |
| 65 |
- pymdownx.tabbed: |
| 66 |
alternate_style: true |
| 67 |
- pymdownx.emoji: |
| 68 |
emoji_index: !!python/name:material.extensions.emoji.twemoji |
| 69 |
emoji_generator: !!python/name:material.extensions.emoji.to_svg |
| 70 |
|
| 71 |
nav: |
| 72 |
- Home: 'index.md' |
| 73 |
- Tutorial: |
| 74 |
- 'Quickstart': 'tutorial/quickstart.md' |
| 75 |
- '1 - Serialization': 'tutorial/1-serialization.md' |
| 76 |
- '2 - Requests and responses': 'tutorial/2-requests-and-responses.md' |
| 77 |
- '3 - Class based views': 'tutorial/3-class-based-views.md' |
| 78 |
- '4 - Authentication and permissions': 'tutorial/4-authentication-and-permissions.md' |
| 79 |
- '5 - Relationships and hyperlinked APIs': 'tutorial/5-relationships-and-hyperlinked-apis.md' |
| 80 |
- '6 - Viewsets and routers': 'tutorial/6-viewsets-and-routers.md' |
| 81 |
- API Guide: |
| 82 |
- 'Requests': 'api-guide/requests.md' |
| 83 |
- 'Responses': 'api-guide/responses.md' |
| 84 |
- 'Views': 'api-guide/views.md' |
| 85 |
- 'Generic views': 'api-guide/generic-views.md' |
| 86 |
- 'Viewsets': 'api-guide/viewsets.md' |
| 87 |
- 'Routers': 'api-guide/routers.md' |
| 88 |
- 'Parsers': 'api-guide/parsers.md' |
| 89 |
- 'Renderers': 'api-guide/renderers.md' |
| 90 |
- 'Serializers': 'api-guide/serializers.md' |
| 91 |
- 'Serializer fields': 'api-guide/fields.md' |
| 92 |
- 'Serializer relations': 'api-guide/relations.md' |
| 93 |
- 'Validators': 'api-guide/validators.md' |
| 94 |
- 'Authentication': 'api-guide/authentication.md' |
| 95 |
- 'Permissions': 'api-guide/permissions.md' |
| 96 |
- 'Caching': 'api-guide/caching.md' |
| 97 |
- 'Throttling': 'api-guide/throttling.md' |
| 98 |
- 'Filtering': 'api-guide/filtering.md' |
| 99 |
- 'Pagination': 'api-guide/pagination.md' |
| 100 |
- 'Versioning': 'api-guide/versioning.md' |
| 101 |
- 'Content negotiation': 'api-guide/content-negotiation.md' |
| 102 |
- 'Metadata': 'api-guide/metadata.md' |
| 103 |
- 'Schemas': 'api-guide/schemas.md' |
| 104 |
- 'Format suffixes': 'api-guide/format-suffixes.md' |
| 105 |
- 'Returning URLs': 'api-guide/reverse.md' |
| 106 |
- 'Exceptions': 'api-guide/exceptions.md' |
| 107 |
- 'Status codes': 'api-guide/status-codes.md' |
| 108 |
- 'Testing': 'api-guide/testing.md' |
| 109 |
- 'Settings': 'api-guide/settings.md' |
| 110 |
- Topics: |
| 111 |
- 'Documenting your API': 'topics/documenting-your-api.md' |
| 112 |
- 'Internationalization': 'topics/internationalization.md' |
| 113 |
- 'AJAX, CSRF & CORS': 'topics/ajax-csrf-cors.md' |
| 114 |
- 'HTML & Forms': 'topics/html-and-forms.md' |
| 115 |
- 'Browser Enhancements': 'topics/browser-enhancements.md' |
| 116 |
- 'The Browsable API': 'topics/browsable-api.md' |
| 117 |
- 'REST, Hypermedia & HATEOAS': 'topics/rest-hypermedia-hateoas.md' |
| 118 |
- Community: |
| 119 |
- 'Tutorials and Resources': 'community/tutorials-and-resources.md' |
| 120 |
- 'Third Party Packages': 'community/third-party-packages.md' |
| 121 |
- 'Contributing to REST framework': 'community/contributing.md' |
| 122 |
- 'Project management': 'community/project-management.md' |
| 123 |
- 'Release Notes': 'community/release-notes.md' |
| 124 |
- '3.16 Announcement': 'community/3.16-announcement.md' |
| 125 |
- '3.15 Announcement': 'community/3.15-announcement.md' |
| 126 |
- '3.14 Announcement': 'community/3.14-announcement.md' |
| 127 |
- '3.13 Announcement': 'community/3.13-announcement.md' |
| 128 |
- '3.12 Announcement': 'community/3.12-announcement.md' |
| 129 |
- '3.11 Announcement': 'community/3.11-announcement.md' |
| 130 |
- '3.10 Announcement': 'community/3.10-announcement.md' |
| 131 |
- '3.9 Announcement': 'community/3.9-announcement.md' |
| 132 |
- '3.8 Announcement': 'community/3.8-announcement.md' |
| 133 |
- '3.7 Announcement': 'community/3.7-announcement.md' |
| 134 |
- '3.6 Announcement': 'community/3.6-announcement.md' |
| 135 |
- '3.5 Announcement': 'community/3.5-announcement.md' |
| 136 |
- '3.4 Announcement': 'community/3.4-announcement.md' |
| 137 |
- '3.3 Announcement': 'community/3.3-announcement.md' |
| 138 |
- '3.2 Announcement': 'community/3.2-announcement.md' |
| 139 |
- '3.1 Announcement': 'community/3.1-announcement.md' |
| 140 |
- '3.0 Announcement': 'community/3.0-announcement.md' |
| 141 |
- 'Kickstarter Announcement': 'community/kickstarter-announcement.md' |
| 142 |
- 'Mozilla Grant': 'community/mozilla-grant.md' |
| 143 |
- 'Jobs': 'community/jobs.md' |