Fixed capture marshalling
This commit is contained in:
parent
54c5605cb1
commit
ee738d5319
1 changed files with 5 additions and 7 deletions
|
|
@ -3,12 +3,10 @@ from flask import abort, request, redirect, url_for, send_file
|
||||||
|
|
||||||
from openflexure_microscope.api.utilities import get_bool, JsonResponse
|
from openflexure_microscope.api.utilities import get_bool, JsonResponse
|
||||||
|
|
||||||
from labthings.server.schema import Schema
|
from labthings import Schema, fields, find_component
|
||||||
from labthings.server import fields
|
from labthings.views import View, PropertyView
|
||||||
from labthings.server.view import View, PropertyView
|
from labthings.utilities import description_from_view
|
||||||
from labthings.server.utilities import description_from_view
|
from labthings.views.marshalling import marshal_with
|
||||||
|
|
||||||
from labthings.server.find import find_component
|
|
||||||
|
|
||||||
from marshmallow import pre_dump
|
from marshmallow import pre_dump
|
||||||
|
|
||||||
|
|
@ -98,8 +96,8 @@ class CaptureList(PropertyView):
|
||||||
|
|
||||||
class CaptureView(View):
|
class CaptureView(View):
|
||||||
tags = ["captures"]
|
tags = ["captures"]
|
||||||
schema = CaptureSchema()
|
|
||||||
|
|
||||||
|
@marshal_with(CaptureSchema())
|
||||||
def get(self, id):
|
def get(self, id):
|
||||||
"""
|
"""
|
||||||
Description of a single image capture
|
Description of a single image capture
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue