docs.py 文件源码

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

项目:universal_notifications 作者: ArabellaTech 项目源码 文件源码
def get(self, request, *args, **kwargs):
        apis = [{"path": "/" + path} for path in self.get_resources()]
        return Response({
            "apiVersion": rfs.SWAGGER_SETTINGS.get("api_version", ""),
            "swaggerVersion": "1.2",
            "basePath": self.get_base_path(),
            "apis": apis,
            "info": rfs.SWAGGER_SETTINGS.get("info", {
                "contact": "",
                "description": "",
                "license": "",
                "licenseUrl": "",
                "termsOfServiceUrl": "",
                "title": "",
            }),
        })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号