Skip to content

Commit

Permalink
Update qod-api.yaml
Browse files Browse the repository at this point in the history
- Added data to CloudEvents base class
- Notification example moved to callback
  • Loading branch information
jlurien committed Nov 16, 2023
1 parent 1e10bb0 commit 98522bf
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions code/API_definitions/qod-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ paths:
application/cloudevents+json:
schema:
$ref: "#/components/schemas/CloudEvent"
examples:
QOS_STATUS_CHANGED:
summary: QoS status changed
value:
id: 83a0d986-0866-4f38-b8c0-fc65bfcda452
source: 'https://api.example.com/qod/v0/sessions/123e4567-e89b-12d3-a456-426614174000'
specversion: '1.0'
type: 'org.camaraproject.qod.v0.qos-status-changed'
time: '2021-12-12T00:00:00Z'
data:
sessionId: '123e4567-e89b-12d3-a456-426614174000'
qosStatus: 'UNAVAILABLE'
statusInfo: 'DURATION_EXPIRED'
responses:
"204":
description: Successful notification
Expand Down Expand Up @@ -761,6 +774,9 @@ components:
type: string
enum:
- 'application/json'
data:
description: Event notification details payload, which depends on the event type
type: object
time:
description: |
Timestamp of when the occurrence happened. It must follow RFC 3339
Expand Down Expand Up @@ -791,16 +807,6 @@ components:
$ref: "#/components/schemas/StatusInfo"
required:
- data
example:
id: 83a0d986-0866-4f38-b8c0-fc65bfcda452
source: 'https://api.example.com/qod/v0/sessions/123e4567-e89b-12d3-a456-426614174000'
specversion: '1.0'
type: 'org.camaraproject.qod.v0.qos-status-changed'
time: '2021-12-12T00:00:00Z'
data:
sessionId: '123e4567-e89b-12d3-a456-426614174000'
qosStatus: 'UNAVAILABLE'
statusInfo: 'DURATION_EXPIRED'

StatusInfo:
description: |
Expand Down

0 comments on commit 98522bf

Please sign in to comment.