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": "",
}),
})
评论列表
文章目录