Get action descriptions from docstrings

This commit is contained in:
jtc42 2019-11-19 22:46:50 +00:00
parent c2d27e8f56
commit 347bd2207a
6 changed files with 48 additions and 9 deletions

View file

@ -4,6 +4,12 @@ import subprocess
class ShutdownAPI(MicroscopeView):
"""
Attempt to shutdown the device
Allowed methods:
POST
"""
def post(self):
"""
Attempt to shutdown the device
@ -17,6 +23,12 @@ class ShutdownAPI(MicroscopeView):
class RebootAPI(MicroscopeView):
"""
Attempt to reboot the device
Allowed methods:
POST
"""
def post(self):
"""
Attempt to shutdown the device