基于Django-Tastypie构建的Self Documenting API

Tec*_*gon 6 api django documentation tastypie

我使用django-tastypie,我很高兴.但我真的想从Django Rest Framework获得自我记录的api功能.

有哪些解决方案(或有人建立)来获得这种自动生成的Django Rest Framework文档,但是来自基于TastyPie的API?

小智 8

我自己没有机会使用它,但django-tastypie-swagger看起来很有前途(https://github.com/concentricsky/django-tastypie-swagger/).Swagger本身是API文档的绝佳选择(https://developers.helloreverb.com/swagger/).