diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index 4c46d3f..911147e 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -60,6 +60,8 @@ If you want your API to send back JSON, simply set the ``resp.media`` property t A ``GET`` request to ``/hello/guido/json`` will result in a response of ``{'hello': 'guido'}``. +If the client requests YAML instead (with a header of ``Accept: application/x-yaml``), YAML will be sent. + Receiving Data & Background Tasks ---------------------------------