mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Begin releae anouncement
This commit is contained in:
parent
d20d701ceb
commit
0cbc14a059
29
docs/topics/3.7-announcement.md
Normal file
29
docs/topics/3.7-announcement.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
# Django REST framework 3.7
|
||||||
|
|
||||||
|
The 3.7 release focuses on improvements to schema generation and interactive API
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
## Per-view customisation of schema generation.
|
||||||
|
|
||||||
|
`APIView` now exposes a `schema` attribute. By default this is an instance of
|
||||||
|
`rest_framwork.schemas.AutoSchema`. You can subclass this to customise schema
|
||||||
|
generation on a per-view basis, whilst maintaining the default schema generation
|
||||||
|
elsewhere.
|
||||||
|
|
||||||
|
See [Schema Docs][schema-docs] for full details.
|
||||||
|
|
||||||
|
[schema-docs]: ../api-guide/schemas.md
|
||||||
|
|
||||||
|
## Deprecations
|
||||||
|
|
||||||
|
### `exclude_from_schema`
|
||||||
|
|
||||||
|
Both `APIView.exclude_from_schema` and the `exclude_from_schema` argument to the
|
||||||
|
`@api_view` decorator and now `PendingDeprecation`.
|
||||||
|
|
||||||
|
For `APIView` set `schema = None`. For function based views use the `@schema`
|
||||||
|
decorator passing `None`.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user