docs.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:universal_notifications 作者: ArabellaTech 项目源码 文件源码
def get(self, request, path, *args, **kwargs):
        result = Response({
            "apiVersion": rfs.SWAGGER_SETTINGS.get("api_version", ""),
            "swaggerVersion": "1.2",
            "basePath": self.api_full_uri.rstrip("/"),
            "resourcePath": "/" + path,
            "apis": NotificationsDocs.generate_notifications_docs(path),
            "models": NotificationsDocs.generate_models_docs(),
        })

        return result
# -- CODE TAKEN FROM DJANGO REST SWAGGER & MODIFIED
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号