Skip to content
Snippets Groups Projects
Commit c5f7596a authored by Yann Garcia's avatar Yann Garcia
Browse files

Add MEC 016 support

parent b2f51514
No related branches found
No related tags found
1 merge request!4merge MEC021 APi into STF625_TASK4
......@@ -7,10 +7,10 @@ info:
license:
name: BSD-3-Clause
url: https://forge.etsi.org/legal-matters
version: 2.2.1
version: 3.1.1
externalDocs:
description: ETSI GS MEC016 V2.2.1 Device application interface
url: https://www.etsi.org/deliver/etsi_gs/MEC/001_099/016/02.02.01_60/gs_MEC016v020201p.pdf
description: ETSI GS MEC016 V3.1.1 Device application interface
url: https://www.etsi.org/deliver/etsi_gs/MEC/001_099/016/03.01.01_60/gs_mec016v030101p.pdf
servers:
- url: https://localhost/sandboxname/dev_app/v1
tags:
......@@ -353,88 +353,6 @@ paths:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
/subscriptions/{subscriptionId}:
post:
tags:
- app_term
summary: MEC011 Application Termination notification for self termination
description: Terminates itself.
operationId: mec011AppTerminationPOST
parameters:
- name: subscriptionId
in: path
description: "Refers to created subscription, where the VIS API allocates\
\ a unique resource name for this subscription"
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: Termination notification details
content:
application/json:
schema:
$ref: '#/components/schemas/AppTerminationNotification'
example:
notificationType: AppTerminationNotification
operationAction: TERMINATING
maxGracefulTimeout: 10
_links:
subscription:
href: http://mec011Server.example.com/mec_app_support/v2/applications/appId1234/subscriptions/sub123
confirmTermination:
href: http://mec011Server.example.com/mec_app_support/v2/confirm_termination
required: true
responses:
"204":
description: No Content
x-swagger-router-controller: notifications
delete:
tags:
- unsupported
summary: Used to cancel the existing subscription.
description: Used to cancel the existing subscription.
operationId: individualSubscriptionDELETE
parameters:
- name: subscriptionId
in: path
description: "Refers to created subscription, where the VIS API allocates\
\ a unique resource name for this subscription"
required: true
style: simple
explode: false
schema:
type: string
responses:
"204":
description: No Content
"401":
description: "Unauthorized : used when the client did not submit credentials."
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
"403":
description: "Forbidden : operation is not allowed given the current status\
\ of the resource."
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
"404":
description: "Not Found : used when a client provided a URI that cannot\
\ be mapped to a valid resource URI."
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
"429":
description: "Too Many Requests : used when a rate limiter has triggered."
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
components:
schemas:
AddressChangeNotification:
......@@ -943,70 +861,6 @@ components:
format: uri
x-etsi-mec-cardinality: 0..1
x-etsi-mec-origin-type: URI
Links:
required:
- self
type: object
properties:
self:
$ref: '#/components/schemas/LinkType'
description: Hyperlink related to the resource. This shall be only included
in the HTTP responses and in HTTP PUT requests.
x-etsi-mec-cardinality: 0..1
x-etsi-mec-origin-type: Structure (inlined)
LinkType:
required:
- href
type: object
properties:
href:
type: string
description: URI referring to a resource
format: uri
x-etsi-mec-cardinality: "1"
x-etsi-mec-origin-type: Uri
example:
href: http://example.com/aeiou
x-etsi-ref: 6.5.13
AppTerminationNotification:
required:
- _links
- maxGracefulTimeout
- notificationType
- operationAction
type: object
properties:
notificationType:
type: string
description: Shall be set to AppTerminationNotification.
operationAction:
$ref: '#/components/schemas/OperationActionType'
maxGracefulTimeout:
type: integer
description: Maximum timeout value in seconds for graceful termination or
graceful stop of an application instance.
format: uint32
_links:
$ref: '#/components/schemas/AppTerminationNotification__links'
description: This type represents the information that the MEC platform notifies
the subscribed application instance about the corresponding application instance
termination/stop.
OperationActionType:
type: string
description: Operation that is being performed on the MEC application instance.
enum:
- STOPPING
- TERMINATING
AppTerminationNotification__links:
required:
- subscription
type: object
properties:
subscription:
$ref: '#/components/schemas/LinkType'
confirmTermination:
$ref: '#/components/schemas/LinkType'
description: Object containing hyperlinks related to the resource.
AppContext_appInfo_userAppInstanceInfo:
type: object
properties:
......@@ -1115,7 +969,6 @@ components:
$ref: '#/components/schemas/AppContext_appInfo_userAppInstanceInfo'
x-etsi-mec-cardinality: 1..N
x-etsi-mec-origin-type: array (Structure inlined)
description: ""
example:
appSoftVersion: appSoftVersion
appDVersion: appDVersion
......@@ -1179,7 +1032,6 @@ components:
format: uri
x-etsi-mec-cardinality: "1"
x-etsi-mec-origin-type: URI
example: null
ApplicationList_appInfo_appCharcs:
type: object
properties:
......@@ -1292,7 +1144,6 @@ components:
value shall not exceed 32 characters.
x-etsi-mec-cardinality: "1"
x-etsi-mec-origin-type: String
description: ""
example:
appCharcs:
serviceCont: 5
......@@ -1492,7 +1343,6 @@ components:
$ref: '#/components/schemas/ApplicationLocationAvailability_appInfo_availableLocations'
x-etsi-mec-cardinality: 0..N
x-etsi-mec-origin-type: array (Structure (inline))
description: ""
example:
appSoftVersion: appSoftVersion
appDVersion: appDVersion
......
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