Test api.doc.
This commit is contained in:
parent
065cd325ad
commit
9342675ab2
@ -196,7 +196,7 @@ Set_mode_parser.add_argument(
|
|||||||
)
|
)
|
||||||
|
|
||||||
Set_mode_resource_fields = {
|
Set_mode_resource_fields = {
|
||||||
'value': fields.String(required=True, title='test', description='Thermostat mode', enum=targets+modes),
|
'value': fields.String(required=True, description='Thermostat mode', enum=targets+modes),
|
||||||
}
|
}
|
||||||
Set_mode_model = api.model('Set_mode_Model', Set_mode_resource_fields)
|
Set_mode_model = api.model('Set_mode_Model', Set_mode_resource_fields)
|
||||||
|
|
||||||
@ -211,7 +211,6 @@ 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(description=set_mode_description)
|
@api.doc(description=set_mode_description)
|
||||||
@api.param('value', 'An ID')
|
|
||||||
def post(self):
|
def post(self):
|
||||||
global new_forced_mode
|
global new_forced_mode
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user