Fixed automatic Swagger from docstrings

This commit is contained in:
jtc42 2020-01-02 23:37:28 +00:00
parent 4918215ea7
commit 5bdb6764be
5 changed files with 42 additions and 22 deletions

View file

@ -30,6 +30,9 @@ class CaptureAPI(Resource):
@marshal_with(capture_schema)
@doc_response(200, "Capture successful")
def post(self, args):
"""
Create a new capture
"""
microscope = find_device("openflexure_microscope")
resize = args.get("resize", None)