Test api.doc.

This commit is contained in:
yohan 2024-06-06 22:35:22 +02:00
parent be8588d039
commit 6fdf7f3c05

View File

@ -181,6 +181,7 @@ Set_mode_parser.add_argument(
@ns_thermostat.route('/set_mode') @ns_thermostat.route('/set_mode')
class Set_mode_thermostat(Resource): class Set_mode_thermostat(Resource):
@auth_required @auth_required
@api.doc(parser=Set_mode_parser)
@api.expect(Set_mode_parser, validate=True) @api.expect(Set_mode_parser, validate=True)
def post(self): def post(self):
global new_forced_mode global new_forced_mode