add endpoint for deassociate tags of devices

This commit is contained in:
Cayo Puigdefabregas 2021-02-26 11:29:17 +01:00
parent 689d0c48c8
commit 3931d2456f
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ class TagDef(Resource):
'device/<{0.ID_CONVERTER.value}:device_id>'.format(DeviceDef),
view_func=device_view,
methods={'PUT'})
self.add_url_rule('/<{0.ID_CONVERTER.value}:tag_id>/'.format(self) +
'device/<{0.ID_CONVERTER.value}:device_id>'.format(DeviceDef),
view_func=device_view,
methods={'DELETE'})
@option('-u', '--owner', help=OWNER_H)
@option('-o', '--org', help=ORG_H)