From 029fb9e595ebd70bc68fcac0043b1e10f9586eb9 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Sun, 24 Sep 2023 10:04:10 +0200 Subject: [PATCH] fix: missing error type and default to json when retrieving a subscription --- resources/ApiUtils/ContextInformationSubscription.resource | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/ApiUtils/ContextInformationSubscription.resource b/resources/ApiUtils/ContextInformationSubscription.resource index 57eae735..38a5fa93 100755 --- a/resources/ApiUtils/ContextInformationSubscription.resource +++ b/resources/ApiUtils/ContextInformationSubscription.resource @@ -16,6 +16,7 @@ ${CONTENT_TYPE_LD_JSON} application/ld+json ${ERROR_TYPE_BAD_REQUEST_DATA} https://uri.etsi.org/ngsi-ld/errors/BadRequestData ${ERROR_TYPE_INVALID_REQUEST} https://uri.etsi.org/ngsi-ld/errors/InvalidRequest ${ERROR_TYPE_RESOURCE_NOT_FOUND} https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound +${ERROR_TYPE_ALREADY_EXISTS} https://uri.etsi.org/ngsi-ld/errors/AlreadyExists ${response} ${EMPTY} @@ -113,7 +114,7 @@ Query Subscriptions RETURN ${response} Retrieve Subscription - [Arguments] ${id} ${accept}=${EMPTY} ${context}=${EMPTY} ${content_type}=${CONTENT_TYPE_LD_JSON} + [Arguments] ${id} ${accept}=${EMPTY} ${context}=${EMPTY} ${content_type}=${CONTENT_TYPE_JSON} &{headers}= Create Dictionary Content-Type=${content_type} IF '${accept}'!='' -- GitLab