From 55c609a4a07735654f6c6e985ccac92156fc584d Mon Sep 17 00:00:00 2001 From: Herbert Damker <52109189+hdamker@users.noreply.github.com> Date: Mon, 5 Aug 2024 08:50:15 +0200 Subject: [PATCH] Update quality-on-demand.yaml Added error schema "GenericDevice404" as discussed in https://github.com/camaraproject/QualityOnDemand/pull/326#issuecomment-2265157950 --- code/API_definitions/quality-on-demand.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index 87c326940..d05c26577 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -212,7 +212,7 @@ paths: "403": $ref: "#/components/responses/Generic403" "404": - $ref: "#/components/responses/Generic404" + $ref: "#/components/responses/GenericDevice404" "409": $ref: "#/components/responses/SessionInConflict409" "422": @@ -901,6 +901,23 @@ components: message: "{{field}} is not consistent with access token." Generic404: + description: Not found + headers: + x-correlator: + $ref: "#/components/headers/x-correlator" + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorInfo" + examples: + GENERIC_404_NOT_FOUND: + description: Resource is not found + value: + status: 404 + code: NOT_FOUND + message: The specified resource is not found. + + GenericDevice404: description: Not found headers: x-correlator: