Commit 140ebcd6 authored by Walter Featherstone's avatar Walter Featherstone

Used readOnly in place of .Request/.Response

Signed-off-by: 's avatarWalter Featherstone <wol190@gmail.com>
parent f6224c89
......@@ -25,7 +25,7 @@ parameters:
in: body
required: true
schema:
$ref: '#/definitions/AppTerminationNotificationSubscription.Request'
$ref: '#/definitions/AppTerminationNotificationSubscription'
Body.DnsRule:
name: DnsRule
description: The updated state is included in the entity body of the request.
......@@ -39,7 +39,7 @@ parameters:
in: body
required: true
schema:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.Request'
$ref: '#/definitions/SerAvailabilityNotificationSubscription'
Body.ServiceInfo:
name: ServiceInfo
description: New ServiceInfo with updated "state" is included as entity body of the request
......@@ -325,7 +325,7 @@ paths:
type: object
properties:
AppTerminationNotificationSubscription:
$ref: '#/definitions/AppTerminationNotificationSubscription.Response'
$ref: '#/definitions/AppTerminationNotificationSubscription'
'400':
description: Bad Request
schema:
......@@ -366,7 +366,7 @@ paths:
type: object
properties:
SerAvailabilityNotificationSubscription:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.Response'
$ref: '#/definitions/SerAvailabilityNotificationSubscription'
'400':
description: Bad Request
schema:
......@@ -1034,21 +1034,7 @@ definitions:
description: URI selected by the mobile edge application instance to receive notifications on the subscribed mobile edge application instance management information. This shall be included in both the request and the response.
type: string
format: uri
AppTerminationNotificationSubscription.Request:
description: This type represents the information that the mobile edge platform notifies the subscribed application instance about the corresponding application instance termination/stop.
type: object
required:
- subscriptionType
- callbackReference
- appInstanceId
properties:
subscriptionType:
$ref: '#/definitions/AppTerminationNotificationSubscription.SubscriptionType'
callbackReference:
$ref: '#/definitions/AppTerminationNotificationSubscription.CallbackReference'
appInstanceId:
$ref: '#/definitions/AppTerminationNotificationSubscription.AppInstanceId'
AppTerminationNotificationSubscription.Response:
AppTerminationNotificationSubscription:
description: This type represents the information that the mobile edge platform notifies the subscribed application instance about the corresponding application instance termination/stop.
type: object
required:
......@@ -1261,6 +1247,7 @@ definitions:
description: URI referring to a resource
type: string
format: uri
readOnly: true
example: /meMp1/example
Mp1SubscriptionLinkList.Links:
description: Self-referring URI.
......@@ -1368,25 +1355,12 @@ definitions:
properties:
self:
$ref: '#/definitions/LinkType'
readOnly: true
SerAvailabilityNotificationSubscription.CallbackReference:
description: URI selected by the mobile edge application instance to receive notifications on the subscribed mobile edge service availability information. This shall be included in both the request and the response.
type: string
format: uri
SerAvailabilityNotificationSubscription.Request:
description: This type represents a subscription to the notifications from the mobile edge platform regarding the availability of a mobile edge service or a list of mobile edge services.
type: object
required:
- subscriptionType
- callbackReference
- filteringCriteria
properties:
subscriptionType:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.SubscriptionType'
callbackReference:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.CallbackReference'
filteringCriteria:
$ref: '#/definitions/ServiceInfo'
SerAvailabilityNotificationSubscription.Response:
SerAvailabilityNotificationSubscription:
description: This type represents a subscription to the notifications from the mobile edge platform regarding the availability of a mobile edge service or a list of mobile edge services.
type: object
required:
......
description: This type represents the information that the mobile edge platform notifies the subscribed application instance about the corresponding application instance termination/stop.
type: object
required:
- subscriptionType
- callbackReference
- appInstanceId
properties:
subscriptionType:
$ref: '#/definitions/AppTerminationNotificationSubscription.SubscriptionType'
callbackReference:
$ref: '#/definitions/AppTerminationNotificationSubscription.CallbackReference'
appInstanceId:
$ref: '#/definitions/AppTerminationNotificationSubscription.AppInstanceId'
\ No newline at end of file
description: URI referring to a resource
type: string
format: uri
readOnly: true
example: '/meMp1/example'
\ No newline at end of file
......@@ -4,4 +4,5 @@ required:
- self
properties:
self:
$ref: '#/definitions/LinkType'
\ No newline at end of file
$ref: '#/definitions/LinkType'
readOnly: true
\ No newline at end of file
description: This type represents a subscription to the notifications from the mobile edge platform regarding the availability of a mobile edge service or a list of mobile edge services.
type: object
required:
- subscriptionType
- callbackReference
- filteringCriteria
properties:
subscriptionType:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.SubscriptionType'
callbackReference:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.CallbackReference'
filteringCriteria:
$ref: '#/definitions/ServiceInfo'
\ No newline at end of file
......@@ -8,10 +8,8 @@ AppTerminationNotificationSubscription.AppInstanceId:
$ref: ./AppTerminationNotificationSubscription.AppInstanceId.yaml
AppTerminationNotificationSubscription.CallbackReference:
$ref: ./AppTerminationNotificationSubscription.CallbackReference.yaml
AppTerminationNotificationSubscription.Request:
$ref: ./AppTerminationNotificationSubscription.Request.yaml
AppTerminationNotificationSubscription.Response:
$ref: ./AppTerminationNotificationSubscription.Response.yaml
AppTerminationNotificationSubscription:
$ref: ./AppTerminationNotificationSubscription.yaml
AppTerminationNotificationSubscription.SubscriptionType:
$ref: ./AppTerminationNotificationSubscription.SubscriptionType.yaml
CategoryRef.Href:
......@@ -96,10 +94,8 @@ Self:
$ref: ./Self.yaml
SerAvailabilityNotificationSubscription.CallbackReference:
$ref: ./SerAvailabilityNotificationSubscription.CallbackReference.yaml
SerAvailabilityNotificationSubscription.Request:
$ref: ./SerAvailabilityNotificationSubscription.Request.yaml
SerAvailabilityNotificationSubscription.Response:
$ref: ./SerAvailabilityNotificationSubscription.Response.yaml
SerAvailabilityNotificationSubscription:
$ref: ./SerAvailabilityNotificationSubscription.yaml
SerAvailabilityNotificationSubscription.SubscriptionType:
$ref: ./SerAvailabilityNotificationSubscription.SubscriptionType.yaml
SerializerTypes:
......
......@@ -3,4 +3,4 @@ description: Entity body in the request contains a subscription to the mobile ed
in: body
required: true
schema:
$ref: '#/definitions/AppTerminationNotificationSubscription.Request'
\ No newline at end of file
$ref: '#/definitions/AppTerminationNotificationSubscription'
\ No newline at end of file
......@@ -3,4 +3,4 @@ description: Entity body in the request contains a subscription to the mobile ed
in: body
required: true
schema:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.Request'
\ No newline at end of file
$ref: '#/definitions/SerAvailabilityNotificationSubscription'
\ No newline at end of file
......@@ -10,10 +10,10 @@ responses:
type: object
properties:
SerAvailabilityNotificationSubscription:
$ref: '#/definitions/SerAvailabilityNotificationSubscription.Response'
$ref: '#/definitions/SerAvailabilityNotificationSubscription'
# The alternative response
# AppTerminationNotificationSubscription:
# $ref: '#/definitions/AppTerminationNotificationSubscription.Response'
# $ref: '#/definitions/AppTerminationNotificationSubscription'
400:
description: Bad Request
schema:
......
......@@ -14,7 +14,7 @@ responses:
type: object
properties:
AppTerminationNotificationSubscription:
$ref: '#/definitions/AppTerminationNotificationSubscription.Response'
$ref: '#/definitions/AppTerminationNotificationSubscription'
# The alternative response
# SerAvailabilityNotificationSubscription:
# $ref: '#/definitions/SerAvailabilityNotificationSubscription'
......
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