diff options
author | 2021-01-11 15:34:10 +0200 | |
---|---|---|
committer | 2021-01-19 14:08:37 +0200 | |
commit | dce4e316da66ede214977491c712b0a4ab457644 (patch) | |
tree | 992a172ed47557717468afff2628691b71f1eb5c /cps-rest/docs/api | |
parent | 6f25d3a2ae84aff3f22b50d10592c5321a7c98ce (diff) |
Delete schema set - REST and service layers
Issue-ID: CPS-121
Change-Id: I0fe885c79f98c994a8ac25a59b77b99eee4b3076
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-rest/docs/api')
-rw-r--r-- | cps-rest/docs/api/swagger/components.yaml | 6 | ||||
-rw-r--r-- | cps-rest/docs/api/swagger/cpsAdmin.yml | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/cps-rest/docs/api/swagger/components.yaml b/cps-rest/docs/api/swagger/components.yaml index ab964a93a..3b36b8b2f 100644 --- a/cps-rest/docs/api/swagger/components.yaml +++ b/cps-rest/docs/api/swagger/components.yaml @@ -88,6 +88,12 @@ components: application/json: schema: $ref: '#/components/schemas/ErrorMessage' + Conflict: + description: Conflict + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorMessage' Ok: description: OK content: diff --git a/cps-rest/docs/api/swagger/cpsAdmin.yml b/cps-rest/docs/api/swagger/cpsAdmin.yml index 948c43b76..d33c8e55c 100644 --- a/cps-rest/docs/api/swagger/cpsAdmin.yml +++ b/cps-rest/docs/api/swagger/cpsAdmin.yml @@ -83,6 +83,25 @@ schemaSetBySchemaSetName: $ref: 'components.yaml#/components/responses/Forbidden' 404: $ref: 'components.yaml#/components/responses/NotFound' + delete: + tags: + - cps-admin + summary: Delete schema set given a schema set and a dataspace + operationId: deleteSchemaSet + parameters: + - $ref: 'components.yaml#/components/parameters/dataspaceNameInPath' + - $ref: 'components.yaml#/components/parameters/schemaSetNameInPath' + responses: + 204: + $ref: 'components.yaml#/components/responses/NoContent' + 400: + $ref: 'components.yaml#/components/responses/BadRequest' + 401: + $ref: 'components.yaml#/components/responses/Unauthorized' + 403: + $ref: 'components.yaml#/components/responses/Forbidden' + 409: + $ref: 'components.yaml#/components/responses/Conflict' anchorsByDataspace: get: |