Commit ee5786b0 authored by Walter Featherstone's avatar Walter Featherstone

oAuth2Info is not a required parameter & corrected endpoint in examples

parent 864089d7
......@@ -120,17 +120,6 @@
"type": "string",
"format": "uri"
},
"Path.SubscriptionType": {
"name": "subscriptionType",
"description": "Represents a subscription type to the notifications from the MEC platform.",
"in": "path",
"required": true,
"type": "string",
"enum": [
"SerAvailabilityNotificationSubscription",
"AppTerminationNotificationSubscription"
]
},
"Path.ServiceId": {
"name": "serviceId",
"description": "Represents a MEC service instance.",
......@@ -570,21 +559,18 @@
}
}
},
"/applications/{appInstanceId}/subscriptions/{subscriptionType}/{subscriptionId}": {
"/applications/{appInstanceId}/subscriptions/AppTerminationNotificationSubscription/{subscriptionId}": {
"parameters": [
{
"$ref": "#/parameters/Path.AppInstanceId"
},
{
"$ref": "#/parameters/Path.SubscriptionType"
},
{
"$ref": "#/parameters/Path.SubscriptionId"
}
],
"get": {
"description": "The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.",
"operationId": "ApplicationsSubscription.GET",
"operationId": "AppTerminationSubscription_GET",
"produces": [
"application/json"
],
......@@ -640,7 +626,110 @@
},
"delete": {
"description": "This method deletes a meMp1Subscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.",
"operationId": "ApplicationsSubscription.DELETE",
"operationId": "AppTerminationSubscription_DELETE",
"produces": [
"application/json"
],
"responses": {
"204": {
"description": "No Content"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"required": [
"ProblemDetails"
],
"properties": {
"ProblemDetails": {
"$ref": "#/definitions/ProblemDetails"
}
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object",
"properties": {
"ProblemDetails": {
"$ref": "#/definitions/ProblemDetails"
}
}
}
}
}
}
},
"/applications/{appInstanceId}/subscriptions/SerAvailabilityNotificationSubscription/{subscriptionId}": {
"parameters": [
{
"$ref": "#/parameters/Path.AppInstanceId"
},
{
"$ref": "#/parameters/Path.SubscriptionId"
}
],
"get": {
"description": "The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.",
"operationId": "SerAvailabilitySubscription_GET",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Upon success, a response body containing the requested subscription is returned.",
"schema": {
"type": "object",
"properties": {
"SerAvailabilityNotificationSubscription": {
"$ref": "#/definitions/SerAvailabilityNotificationSubscription"
}
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"properties": {
"ProblemDetails": {
"$ref": "#/definitions/ProblemDetails"
}
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"required": [
"ProblemDetails"
],
"properties": {
"ProblemDetails": {
"$ref": "#/definitions/ProblemDetails"
}
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object",
"properties": {
"ProblemDetails": {
"$ref": "#/definitions/ProblemDetails"
}
}
}
}
}
},
"delete": {
"description": "This method deletes a meMp1Subscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.",
"operationId": "SerAvailabilitySubscription_DELETE",
"produces": [
"application/json"
],
......@@ -1009,12 +1098,6 @@
"endpoint": {
"uris": [
"/meMp1/service/EntryPoint"
],
"addresses": [
{
"host": "192.0.2.0",
"port": 8080
}
]
},
"security": {
......@@ -1122,9 +1205,6 @@
"protocol": "HTTP",
"version": "2.0",
"endpoint": {
"uris": [
"/meMp1/service/EntryPoint"
],
"addresses": [
{
"host": "192.0.2.0",
......@@ -2271,9 +2351,6 @@
"SecurityInfo": {
"description": "This type represents security information related to a transport",
"type": "object",
"required": [
"oAuth2Info"
],
"properties": {
"oAuth2Info": {
"$ref": "#/definitions/SecurityInfo.OAuth2Info"
......
......@@ -90,15 +90,6 @@ parameters:
required: true
type: string
format: uri
Path.SubscriptionType:
name: subscriptionType
description: Represents a subscription type to the notifications from the MEC platform.
in: path
required: true
type: string
enum:
- SerAvailabilityNotificationSubscription
- AppTerminationNotificationSubscription
Path.ServiceId:
name: serviceId
description: Represents a MEC service instance.
......@@ -389,19 +380,23 @@ paths:
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
'/applications/{appInstanceId}/subscriptions/{subscriptionType}/{subscriptionId}':
'/applications/{appInstanceId}/subscriptions/AppTerminationNotificationSubscription/{subscriptionId}':
parameters:
- $ref: '#/parameters/Path.AppInstanceId'
- $ref: '#/parameters/Path.SubscriptionType'
- $ref: '#/parameters/Path.SubscriptionId'
get:
description: 'The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.'
operationId: ApplicationsSubscription.GET
description: >-
The GET method requests information about a subscription for this
requestor. Upon success, the response contains entity body with the
subscription for the requestor.
operationId: AppTerminationSubscription_GET
produces:
- application/json
responses:
'200':
description: 'Upon success, a response body containing the requested subscription is returned.'
description: >-
Upon success, a response body containing the requested subscription
is returned.
schema:
type: object
properties:
......@@ -431,8 +426,83 @@ paths:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
delete:
description: This method deletes a meMp1Subscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
operationId: ApplicationsSubscription.DELETE
description: >-
This method deletes a meMp1Subscription. This method is typically used
in "Unsubscribing from service availability event notifications"
procedure.
operationId: AppTerminationSubscription_DELETE
produces:
- application/json
responses:
'204':
description: No Content
'403':
description: Forbidden
schema:
type: object
required:
- ProblemDetails
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
'404':
description: Not Found
schema:
type: object
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
'/applications/{appInstanceId}/subscriptions/SerAvailabilityNotificationSubscription/{subscriptionId}':
parameters:
- $ref: '#/parameters/Path.AppInstanceId'
- $ref: '#/parameters/Path.SubscriptionId'
get:
description: >-
The GET method requests information about a subscription for this
requestor. Upon success, the response contains entity body with the
subscription for the requestor.
operationId: SerAvailabilitySubscription_GET
produces:
- application/json
responses:
'200':
description: >-
Upon success, a response body containing the requested subscription
is returned.
schema:
type: object
properties:
SerAvailabilityNotificationSubscription:
$ref: '#/definitions/SerAvailabilityNotificationSubscription'
'400':
description: Bad Request
schema:
type: object
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
'403':
description: Forbidden
schema:
type: object
required:
- ProblemDetails
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
'404':
description: Not Found
schema:
type: object
properties:
ProblemDetails:
$ref: '#/definitions/ProblemDetails'
delete:
description: >-
This method deletes a meMp1Subscription. This method is typically used
in "Unsubscribing from service availability event notifications"
procedure.
operationId: SerAvailabilitySubscription_DELETE
produces:
- application/json
responses:
......@@ -666,9 +736,6 @@ paths:
endpoint:
uris:
- '/meMp1/service/EntryPoint'
addresses:
- host: '192.0.2.0'
port: 8080
security:
oAuth2Info:
grantTypes: 'OAUTH2_CLIENT_CREDENTIALS'
......@@ -741,8 +808,6 @@ paths:
protocol: 'HTTP'
version: '2.0'
endpoint:
uris:
- '/meMp1/service/EntryPoint'
addresses:
- host: '192.0.2.0'
port: 8080
......@@ -1518,8 +1583,6 @@ definitions:
SecurityInfo:
description: This type represents security information related to a transport
type: object
required:
- oAuth2Info
properties:
oAuth2Info:
$ref: '#/definitions/SecurityInfo.OAuth2Info'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment