Docstring for preview API route
This commit is contained in:
parent
c3692aa3ef
commit
f42dcf8b95
1 changed files with 22 additions and 1 deletions
|
|
@ -653,7 +653,28 @@ class GPUPreviewAPI(MicroscopeView):
|
|||
|
||||
def post(self, operation):
|
||||
"""
|
||||
TODO: Documentation
|
||||
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
|
||||
|
||||
:>header Accept: application/json
|
||||
|
||||
.. sourcecode:: http
|
||||
|
||||
POST /camera/preview/stop HTTP/1.1
|
||||
Accept: application/json
|
||||
|
||||
:>header Accept: application/json
|
||||
|
||||
:<header Content-Type: application/json
|
||||
:status 200: preview started/stopped
|
||||
"""
|
||||
if operation == "start":
|
||||
self.microscope.camera.start_preview()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue