We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a22bf commit 5ec94eeCopy full SHA for 5ec94ee
src/labthings/view/__init__.py
@@ -44,8 +44,13 @@ class View(MethodView):
44
_cls_tags = set() # Class tags that shouldn't be removed
45
title: None
46
47
+ # Default input content_type
48
+ content_type = "application/json"
49
+ # Custom responses dictionary
50
responses: dict = {}
51
+ # Methods for which to read arguments
52
arg_methods = ("POST", "PUT", "PATCH")
53
+ # Methods for which to marshal responses
54
marshal_methods = ("GET", "PUT", "POST", "PATCH")
55
56
def __init__(self, *args, **kwargs):
0 commit comments