Skip to content
Snippets Groups Projects
Commit b2a73bac authored by Ikram Haq's avatar Ikram Haq
Browse files

Add example schemas for the subscription resource

parent de23f4c0
No related branches found
No related tags found
2 merge requests!4merge MEC021 APi into STF625_TASK4,!2Stf678 task3
......@@ -627,22 +627,6 @@ paths:
schema:
$ref: '#/components/schemas/ServiceAPIDescription'
example:
apiName: "mec030-1-new"
aefProfiles:
- aefId: "sandboxTransport"
versions:
- "3.1.1"
interfaceDescriptions:
uris:
- "http://my.callback.com/sbx2cmq8bn/mep1/vis/v2/"
fqdn: null
addresses: null
alternative: null
vendorSpecific-urn:etsi:mec:capifext:transport-info:
name: "REST"
type: "REST_HTTP"
protocol: "HTTP"
version: "2.0"
vendorSpecific-urn:etsi:mec:capifext:service-info:
serializer: "JSON"
state: "ACTIVE"
......@@ -744,7 +728,16 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/EventSubscription'
example:
notificationDestination: "http://my.callback.com/mec_capif_mgmt_ser_availabilities/some-id"
events:
- "SERVICE_API_UNAVAILABLE"
eventFilters:
- apiIds:
- "0a0faac0-bcbb-4d45-b673-d37ac6d3dc13"
requestTestNotification: true
required: true
responses:
"201":
description: |
......@@ -832,6 +825,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/EventSubscription'
example:
notificationDestination: "http://my.callback.com/mec_capif_mgmt_ser_availabilities/some-id"
events:
- "SERVICE_API_UNAVAILABLE"
eventFilters:
- apiIds:
- "0a0faac0-bcbb-4d45-b673-d37ac6d3dc13"
requestTestNotification: true
required: true
responses:
"200":
......@@ -982,7 +983,14 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/EventSubscriptionPatch'
$ref: '#/components/schemas/EventSubscription'
example:
notificationDestination: "http://my.callback.com/mec_capif_mgmt_ser_availabilities/some-id"
events:
- "SERVICE_API_UNAVAILABLE"
eventFilters:
- apiIds:
- "0a0faac0-bcbb-4d45-b673-d37ac6d3dc13"
required: true
responses:
"200":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment