Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django rest swagger and json definition

I'm pretty new to Django and I'm currently working on a project where Django-rest-framework is used and the documentation is created with Swagger trough the django-rest-swagger package.

I'm trying to find (or generate) a swagger.json definition file, any idea on where it can be found with this package? I would like to use it to generate client side code.

Thanks

like image 488
teone Avatar asked Oct 19 '22 23:10

teone


1 Answers

The swagger schema definition can be generated with https://github.com/signalfx/fetch-swagger-schema regardless the api implementation.

like image 83
teone Avatar answered Oct 28 '22 23:10

teone