mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-01-27 10:43:52 +03:00
Clarify deprecation of built-in OpenAPI documentation (#9874)
This commit is contained in:
parent
9da0ce25b7
commit
c8af56d260
|
|
@ -4,10 +4,11 @@
|
|||
>
|
||||
> — Roy Fielding, [REST APIs must be hypertext driven][cite]
|
||||
|
||||
REST framework provides a range of different choices for documenting your API. The following
|
||||
is a non-exhaustive list of the most popular ones.
|
||||
REST framework provides a range of different choices for documenting your API. The following is a non-exhaustive list of some of the most popular options.
|
||||
|
||||
## Third party packages for OpenAPI support
|
||||
## Third-party packages for OpenAPI support
|
||||
|
||||
REST framework recommends using third-party packages for generating and presenting OpenAPI schemas, as they provide more features and flexibility than the built-in (deprecated) implementation.
|
||||
|
||||
### drf-spectacular
|
||||
|
||||
|
|
@ -37,9 +38,9 @@ This also translates into a very useful interactive documentation viewer in the
|
|||
|
||||
## Built-in OpenAPI schema generation (deprecated)
|
||||
|
||||
**Deprecation notice: REST framework's built-in support for generating OpenAPI schemas is
|
||||
deprecated in favor of 3rd party packages that can provide this functionality instead.
|
||||
As replacement, we recommend using the [drf-spectacular](#drf-spectacular) package.**
|
||||
!!! warning
|
||||
**Deprecation notice:** REST framework's built-in support for generating OpenAPI schemas is deprecated in favor of third-party packages that provide this functionality instead. As a replacement, we recommend using **drf-spectacular**.
|
||||
|
||||
|
||||
There are a number of packages available that allow you to generate HTML
|
||||
documentation pages from OpenAPI schemas.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user