Blackened

This commit is contained in:
jtc42 2020-01-03 00:21:16 +00:00
parent 6be8b0044a
commit ab6fa9f0e5
11 changed files with 104 additions and 80 deletions

View file

@ -4,6 +4,7 @@ from flask.views import MethodView
class Resource(MethodView):
"""Currently identical to MethodView
"""
endpoint = None
methods = ["get", "post", "put", "delete"]
@ -15,7 +16,6 @@ class Resource(MethodView):
if hasattr(self, "__apispec__"):
docs.update(self.__apispec__)
for meth in Resource.methods:
if hasattr(self, meth) and hasattr(getattr(self, meth), "__apispec__"):
docs["operations"][meth] = {}