Skip to content

Commit

Permalink
Update quality-on-demand.yaml
Browse files Browse the repository at this point in the history
Fix for #351 as discussed
  • Loading branch information
hdamker committed Aug 30, 2024
1 parent 686c478 commit 50c97b5
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion code/API_definitions/quality-on-demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -1174,6 +1176,23 @@ components:
status: 409
code: CONFLICT
message: Conflict with an existing session for the same device.

Check failure on line 1179 in code/API_definitions/quality-on-demand.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

1179:1 [trailing-spaces] trailing spaces
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
Expand Down

0 comments on commit 50c97b5

Please sign in to comment.