Skip to content

Commit

Permalink
Added input content_type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Jul 7, 2020
1 parent 56a22bf commit 5ec94ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/labthings/view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ class View(MethodView):
_cls_tags = set() # Class tags that shouldn't be removed
title: None

# Default input content_type
content_type = "application/json"
# Custom responses dictionary
responses: dict = {}
# Methods for which to read arguments
arg_methods = ("POST", "PUT", "PATCH")
# Methods for which to marshal responses
marshal_methods = ("GET", "PUT", "POST", "PATCH")

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 5ec94ee

Please sign in to comment.