How to create JSON file from DRF docs

22 views
Skip to first unread message

Sudhir Raj Gowda

unread,
Jan 13, 2017, 5:42:04 AM1/13/17
to Django REST framework

Hi,

How to create JSON file of api for static documentation of the API

how to create one.

for example 
swagger-UI provides using curl http:<Ip address>/?format=openapi > <api.json>    file

thanks

sudhir

Tom Christie

unread,
Jan 13, 2017, 8:18:39 AM1/13/17
to Django REST framework
That's pretty much what the schema generation gives you, yup... http://www.django-rest-framework.org/api-guide/schemas/#adding-a-schema

There's some more API documentation work that's on the horizon for the next release too.

Reply all
Reply to author
Forward
0 new messages