From aec9a5332fefdd363b6f327a953c3b7353a67da7 Mon Sep 17 00:00:00 2001 From: briwa Date: Wed, 6 Feb 2019 15:02:15 +0800 Subject: [PATCH] Fix tutorial instruction to also add pyyaml --- docs/tutorial/7-schemas-and-client-libraries.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/7-schemas-and-client-libraries.md b/docs/tutorial/7-schemas-and-client-libraries.md index 412759834..203d81ea5 100644 --- a/docs/tutorial/7-schemas-and-client-libraries.md +++ b/docs/tutorial/7-schemas-and-client-libraries.md @@ -29,9 +29,10 @@ automatically generated schemas. Since we're using viewsets and routers, we can simply use the automatic schema generation. 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 view in our URL configuration.