mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:30:25 +00:00
NOISSUE - Implement Thing Delete (#179)
* add: delete function in things interface Signed-off-by: Arvindh <arvindh91@gmail.com> * add: remove things Signed-off-by: Arvindh <arvindh91@gmail.com> * fix: things event streams Signed-off-by: Arvindh <arvindh91@gmail.com> * add: things delete test Signed-off-by: Arvindh <arvindh91@gmail.com> * add: delete thing http transport Signed-off-by: Arvindh <arvindh91@gmail.com> * add: delete thing sdk, sdk_test, cli Signed-off-by: Arvindh <arvindh91@gmail.com> * gofumpt -ed Signed-off-by: Arvindh <arvindh91@gmail.com> * add: openapi Signed-off-by: Arvindh <arvindh91@gmail.com> * fix: things change status response Signed-off-by: Arvindh <arvindh91@gmail.com> * add: openapi Signed-off-by: Arvindh <arvindh91@gmail.com> * rename events: from thing delete to thing remove Signed-off-by: Arvindh <arvindh91@gmail.com> * fix wordings Signed-off-by: Arvindh <arvindh91@gmail.com> * fix wordings in openapi Signed-off-by: Arvindh <arvindh91@gmail.com> * add: type check Signed-off-by: Arvindh <arvindh91@gmail.com> * update open api yaml Signed-off-by: Arvindh <arvindh91@gmail.com> * fix things mocks Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: Arvindh <arvindh91@gmail.com>
This commit is contained in:
+21
-5
@@ -169,7 +169,26 @@ paths:
|
||||
description: Missing or invalid content type.
|
||||
"500":
|
||||
$ref: "#/components/responses/ServiceError"
|
||||
|
||||
delete:
|
||||
summary: Delete thing for a thing with the given id.
|
||||
description: |
|
||||
Delete thing removes a thing with the given id from repo
|
||||
and removes all the policies related to this thing.
|
||||
tags:
|
||||
- Things
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/ThingID"
|
||||
security:
|
||||
- bearerAuth: []
|
||||
responses:
|
||||
"204":
|
||||
description: Thing deleted.
|
||||
"401":
|
||||
description: Missing or invalid access token provided.
|
||||
"403":
|
||||
description: Unauthorized access to thing id.
|
||||
"500":
|
||||
$ref: "#/components/responses/ServiceError"
|
||||
/things/{thingID}/tags:
|
||||
patch:
|
||||
summary: Updates tags the thing.
|
||||
@@ -479,7 +498,7 @@ paths:
|
||||
- bearerAuth: []
|
||||
responses:
|
||||
"204":
|
||||
$ref: "#/components/responses/ChannelDeleteRes"
|
||||
description: Channel deleted.
|
||||
"401":
|
||||
description: Missing or invalid access token provided.
|
||||
"403":
|
||||
@@ -1771,9 +1790,6 @@ components:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Channel"
|
||||
|
||||
ChannelDeleteRes:
|
||||
description: Channel Deleted.
|
||||
|
||||
ChannelPageRes:
|
||||
description: Data retrieved.
|
||||
content:
|
||||
|
||||
@@ -571,6 +571,26 @@ paths:
|
||||
description: Group does not exist.
|
||||
"500":
|
||||
$ref: "#/components/responses/ServiceError"
|
||||
delete:
|
||||
summary: Delete group for a group with the given id.
|
||||
description: |
|
||||
Delete group removes a group with the given id from repo
|
||||
and removes all the policies related to this group.
|
||||
tags:
|
||||
- Groups
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/GroupID"
|
||||
security:
|
||||
- bearerAuth: []
|
||||
responses:
|
||||
"204":
|
||||
description: Group deleted.
|
||||
"401":
|
||||
description: Missing or invalid access token provided.
|
||||
"403":
|
||||
description: Unauthorized access to group id.
|
||||
"500":
|
||||
$ref: "#/components/responses/ServiceError"
|
||||
|
||||
/groups/{groupID}/children:
|
||||
get:
|
||||
|
||||
Reference in New Issue
Block a user