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
评论列表
文章目录