Test api.doc.
This commit is contained in:
parent
ec2d1e7626
commit
7b40e3bd3c
@ -211,7 +211,7 @@ Set_mode_model = api.model('Set_mode_Model', Set_mode_resource_fields)
|
|||||||
class Set_mode_thermostat(Resource):
|
class Set_mode_thermostat(Resource):
|
||||||
@auth_required
|
@auth_required
|
||||||
@api.expect(Set_mode_model, validate=True)
|
@api.expect(Set_mode_model, validate=True)
|
||||||
@api.doc(params={"id": "An ID", description="My resource"})
|
@api.doc(params={"id": "An ID", description:"My resource"})
|
||||||
def post(self):
|
def post(self):
|
||||||
global new_forced_mode
|
global new_forced_mode
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user