Fix tutorial instruction to also add pyyaml

This commit is contained in:
briwa 2019-02-06 15:02:15 +08:00
parent 7c6e34c14f
commit aec9a5332f

View File

@ -29,9 +29,10 @@ automatically generated schemas. Since we're using viewsets and routers,
we can simply use the automatic schema generation. we can simply use the automatic schema generation.
You'll need to install the `coreapi` python package in order to include an You'll need to install the `coreapi` python package in order to include an
API schema. API schema, and `pyyaml` to render the schema into the commonly used
YAML-based OpenAPI format.
$ pip install coreapi $ pip install coreapi pyyaml
We can now include a schema for our API, by including an autogenerated schema We can now include a schema for our API, by including an autogenerated schema
view in our URL configuration. view in our URL configuration.