Created @ltaction and @ltproperty decorators
This commit is contained in:
parent
d12fd3e02c
commit
3cbd0416d0
4 changed files with 47 additions and 26 deletions
|
|
@ -20,6 +20,9 @@ def update_spec(obj, spec):
|
|||
rupdate(obj.__apispec__, spec)
|
||||
return obj.__apispec__
|
||||
|
||||
def get_spec(obj):
|
||||
obj.__apispec__ = obj.__dict__.get("__apispec__", {})
|
||||
return obj.__apispec__
|
||||
|
||||
def view2path(rule: str, view: Resource, spec: APISpec):
|
||||
params = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue