Blackened
This commit is contained in:
parent
6be8b0044a
commit
ab6fa9f0e5
11 changed files with 104 additions and 80 deletions
|
|
@ -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] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue