Skip to content

Commit 5ec94ee

Browse files
author
Joel Collins
committed
Added input content_type attribute
1 parent 56a22bf commit 5ec94ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/labthings/view/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ class View(MethodView):
4444
_cls_tags = set() # Class tags that shouldn't be removed
4545
title: None
4646

47+
# Default input content_type
48+
content_type = "application/json"
49+
# Custom responses dictionary
4750
responses: dict = {}
51+
# Methods for which to read arguments
4852
arg_methods = ("POST", "PUT", "PATCH")
53+
# Methods for which to marshal responses
4954
marshal_methods = ("GET", "PUT", "POST", "PATCH")
5055

5156
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)