From 5198143a3b7cab8f50e128ec15ddb1e0c052863c Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Tue, 20 Nov 2018 09:37:13 +0100 Subject: [PATCH] Entity By Id Refined --- spec/updated/entity-by-id-spec.json | 52 +++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/spec/updated/entity-by-id-spec.json b/spec/updated/entity-by-id-spec.json index 0ba149f..357f8d0 100644 --- a/spec/updated/entity-by-id-spec.json +++ b/spec/updated/entity-by-id-spec.json @@ -51,8 +51,7 @@ }, { "$ref": "#/components/parameters/type" - }, - + } ], "responses": { "200": { @@ -79,9 +78,56 @@ } } } + }, + "404": { + "description": "Not Found", + "content": { + "application/json;application/ld+json": { + "schema": { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" + } + } + } + } + } + }, + "delete": { + "description": "Removes an specific Entity from an NGSI-LD system", + "operationId": "removeEntityById", + "parameters": [ + { + "$ref": "#/components/parameters/entityId" + }, + { + "$ref": "#/components/parameters/type" + } + ], + "responses": { + "204": { + "description": "No Content. The entity was removed successfully" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json;application/ld+json": { + "schema": { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json;application/ld+json": { + "schema": { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" + } + } + } } } } } } -} +} \ No newline at end of file -- GitLab