From 50c97b5b913b665e23a8fae5579b102c659fef52 Mon Sep 17 00:00:00 2001 From: Herbert Damker <52109189+hdamker@users.noreply.github.com> Date: Fri, 30 Aug 2024 10:55:18 +0200 Subject: [PATCH 1/3] Update quality-on-demand.yaml Fix for #351 as discussed --- code/API_definitions/quality-on-demand.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index 722e43f538..ae2875f047 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -336,7 +336,7 @@ paths: - QoS Sessions summary: "Extend the duration of an active session" description: | - Extend the overall session duration of an active QoS session. + Extend the overall session duration of an active QoS session (with qosStatus = AVAILABLE). The overall duration of the QoS session, including the additional extended duration, shall not exceed the maximum duration limit fixed for the QoS Profile. If the current duration plus the value of `requestedAdditionalDuration` exceeds the maximum limit, the new overall duration shall be capped to the maximum value allowed. An example: For a QoS profile limited to a `maxDuration` of 50,000 seconds, a QoD session was originally created with duration 30,000 seconds. Before the session expires, the developer requests to extend the session by another 30,000 seconds: - Previous duration: 30,000 seconds @@ -385,6 +385,8 @@ paths: $ref: "#/components/responses/Generic403" "404": $ref: "#/components/responses/Generic404" + "409": + $ref: "#/components/responses/SessionStatusConflict409" "429": $ref: "#/components/responses/Generic429" "500": @@ -1174,6 +1176,23 @@ components: status: 409 code: CONFLICT message: Conflict with an existing session for the same device. + + SessionStatusConflict409: + description: Conflict + headers: + x-correlator: + $ref: '#/components/headers/x-correlator' + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorInfo" + example: + SessionExtensionNotAllowed: + description: Session extension is in conflict with current session status + value: + status: 409 + code: QUALITY_ON_DEMAND.SESSION_EXTENSION_NOT_ALLOWED + message: Extending the session duration is not allowed in the current state ({qosStatus}). The session must be in the AVAILABLE state. Generic410: description: Gone From 67963f7ca8980893f495fd7620a19359db80ea79 Mon Sep 17 00:00:00 2001 From: Herbert Damker <52109189+hdamker@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:02:42 +0200 Subject: [PATCH 2/3] Update quality-on-demand.yaml --- code/API_definitions/quality-on-demand.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index ae2875f047..2f82755218 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -1176,7 +1176,7 @@ components: status: 409 code: CONFLICT message: Conflict with an existing session for the same device. - + SessionStatusConflict409: description: Conflict headers: From 42b5a66010134290d91b976d38dc11d079f7d3ef Mon Sep 17 00:00:00 2001 From: Herbert Damker Date: Fri, 30 Aug 2024 11:47:54 +0200 Subject: [PATCH 3/3] Update code/API_definitions/quality-on-demand.yaml Co-authored-by: Jose Luis Urien --- code/API_definitions/quality-on-demand.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/API_definitions/quality-on-demand.yaml b/code/API_definitions/quality-on-demand.yaml index 2f82755218..e7c4095bdd 100644 --- a/code/API_definitions/quality-on-demand.yaml +++ b/code/API_definitions/quality-on-demand.yaml @@ -1186,7 +1186,7 @@ components: application/json: schema: $ref: "#/components/schemas/ErrorInfo" - example: + examples: SessionExtensionNotAllowed: description: Session extension is in conflict with current session status value: