Update docs for OpenAPI (#6814) (#7191)

This commit is contained in:
Dalei 2020-02-19 19:56:12 +08:00 committed by GitHub
parent d7b218f5eb
commit 39dd34f161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,12 +18,12 @@ Django REST Framework provides support for automatic generation of
## Generating an OpenAPI Schema
### Install `pyyaml`
### Install dependencies
You'll need to install `pyyaml`, so that you can render your generated schema
into the commonly used YAML-based OpenAPI format.
pip install pyyaml uritemplate
pip install pyyaml
* `pyyaml` is used to generate schema into YAML-based OpenAPI format.
* `uritemplate` is used internally to get parameters in path.
### Generating a static schema with the `generateschema` management command