from openflexure_microscope.api.v1.views import MicroscopeView from flask import jsonify class GPUPreviewAPI(MicroscopeView): def post(self, operation): """ Create a new image capture. .. :quickref: GPU Preview; Start/stop preview **Example requests**: .. sourcecode:: http POST /camera/preview/start HTTP/1.1 Accept: application/json .. sourcecode:: http POST /camera/preview/stop HTTP/1.1 Accept: application/json :>header Accept: application/json :