From c6b99c3284a1af778818a1288a1e25c27168a80d Mon Sep 17 00:00:00 2001 From: jtc42 Date: Thu, 15 Nov 2018 22:47:55 +0000 Subject: [PATCH] Started adding Sphinx stuff to docstrings --- openflexure_microscope/api/v1.py | 45 +++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/openflexure_microscope/api/v1.py b/openflexure_microscope/api/v1.py index a3a4d224..1c7ba1cf 100644 --- a/openflexure_microscope/api/v1.py +++ b/openflexure_microscope/api/v1.py @@ -114,13 +114,25 @@ class PositionAPI(MicroscopeView): def get(self): """ - Get current position + Return current x, y and z positions of the stage. + + .. :quickref: Position; Get current position """ return jsonify(self.microscope.state['position']) def post(self): """ - Update current position + Set x, y and z positions of the stage. + + .. :quickref: Position; Update current position + + :reqheader Accept: application/json + :