Get action descriptions from docstrings
This commit is contained in:
parent
c2d27e8f56
commit
347bd2207a
6 changed files with 48 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue