Loading openflexure_microscope/api/app.py +4 −4 Original line number Diff line number Diff line Loading @@ -105,10 +105,10 @@ for extension in find_extensions(OPENFLEXURE_EXTENSIONS_PATH): labthing.add_view(views.CaptureList, "/captures") labthing.add_root_link(views.CaptureList, "captures") labthing.add_view(views.CaptureView, "/captures/<id>") labthing.add_view(views.CaptureDownload, "/captures/<id>/download/<filename>") labthing.add_view(views.CaptureTags, "/captures/<id>/tags") labthing.add_view(views.CaptureAnnotations, "/captures/<id>/annotations") labthing.add_view(views.CaptureView, "/captures/<id_>") labthing.add_view(views.CaptureDownload, "/captures/<id_>/download/<filename>") labthing.add_view(views.CaptureTags, "/captures/<id_>/tags") labthing.add_view(views.CaptureAnnotations, "/captures/<id_>/annotations") # Attach settings and state resources labthing.add_view(views.SettingsProperty, "/instrument/settings") Loading openflexure_microscope/api/v2/views/captures.py +4 −4 Original line number Diff line number Diff line Loading @@ -49,18 +49,18 @@ class CaptureSchema(Schema): def generate_links(self, data, **_): data.links = { "self": { "href": url_for(CaptureView.endpoint, id=data.id, _external=True), "href": url_for(CaptureView.endpoint, id_=data.id, _external=True), "mimetype": "application/json", **description_from_view(CaptureView), }, "tags": { "href": url_for(CaptureTags.endpoint, id=data.id, _external=True), "href": url_for(CaptureTags.endpoint, id_=data.id, _external=True), "mimetype": "application/json", **description_from_view(CaptureTags), }, "annotations": { "href": url_for( CaptureAnnotations.endpoint, id=data.id, _external=True CaptureAnnotations.endpoint, id_=data.id, _external=True ), "mimetype": "application/json", **description_from_view(CaptureAnnotations), Loading @@ -68,7 +68,7 @@ class CaptureSchema(Schema): "download": { "href": url_for( CaptureDownload.endpoint, id=data.id, id_=data.id, filename=data.name, _external=True, ), Loading Loading
openflexure_microscope/api/app.py +4 −4 Original line number Diff line number Diff line Loading @@ -105,10 +105,10 @@ for extension in find_extensions(OPENFLEXURE_EXTENSIONS_PATH): labthing.add_view(views.CaptureList, "/captures") labthing.add_root_link(views.CaptureList, "captures") labthing.add_view(views.CaptureView, "/captures/<id>") labthing.add_view(views.CaptureDownload, "/captures/<id>/download/<filename>") labthing.add_view(views.CaptureTags, "/captures/<id>/tags") labthing.add_view(views.CaptureAnnotations, "/captures/<id>/annotations") labthing.add_view(views.CaptureView, "/captures/<id_>") labthing.add_view(views.CaptureDownload, "/captures/<id_>/download/<filename>") labthing.add_view(views.CaptureTags, "/captures/<id_>/tags") labthing.add_view(views.CaptureAnnotations, "/captures/<id_>/annotations") # Attach settings and state resources labthing.add_view(views.SettingsProperty, "/instrument/settings") Loading
openflexure_microscope/api/v2/views/captures.py +4 −4 Original line number Diff line number Diff line Loading @@ -49,18 +49,18 @@ class CaptureSchema(Schema): def generate_links(self, data, **_): data.links = { "self": { "href": url_for(CaptureView.endpoint, id=data.id, _external=True), "href": url_for(CaptureView.endpoint, id_=data.id, _external=True), "mimetype": "application/json", **description_from_view(CaptureView), }, "tags": { "href": url_for(CaptureTags.endpoint, id=data.id, _external=True), "href": url_for(CaptureTags.endpoint, id_=data.id, _external=True), "mimetype": "application/json", **description_from_view(CaptureTags), }, "annotations": { "href": url_for( CaptureAnnotations.endpoint, id=data.id, _external=True CaptureAnnotations.endpoint, id_=data.id, _external=True ), "mimetype": "application/json", **description_from_view(CaptureAnnotations), Loading @@ -68,7 +68,7 @@ class CaptureSchema(Schema): "download": { "href": url_for( CaptureDownload.endpoint, id=data.id, id_=data.id, filename=data.name, _external=True, ), Loading