Commit 458fe2d6 authored by Muhammad Umair Zafar's avatar Muhammad Umair Zafar
Browse files

Fix Enum issue in AppPkgMgmt API

parent d24c506c
Loading
Loading
Loading
Loading
Loading
+3176 −3204
Original line number Diff line number Diff line
@@ -19,8 +19,7 @@
		"description": "ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, v3.1.1",
		"url": "https://www.etsi.org/deliver/etsi_gs/MEC/001_099/01002/03.01.01_60/gs_MEC01002v030101p.pdf"
	},
  "tags": [
    {
	"tags": [{
			"name": "app-pkgm",
			"description": "App Package management"
		},
@@ -29,12 +28,10 @@
			"description": "App Package management notifications"
		}
	],
  "servers": [
    {
	"servers": [{
		"url": "https://localhost/app_pkgm/v1",
		"variables": {}
    }
  ],
	}],
	"paths": {
		"/app_packages": {
			"post": {
@@ -97,8 +94,7 @@
				"summary": "Queries information relating to on-boarded application packages in the MEO/MEAO'",
				"description": "queries information relating to on-boarded application packages in the MEO/MEAO",
				"operationId": "app_packagesGET",
        "parameters": [
          {
				"parameters": [{
						"name": "filter",
						"in": "query",
						"description": "Attribute-based filtering parameters according to ETSI GS MEC 009",
@@ -249,8 +245,7 @@
				"summary": "Queries information relating to on-boarded application packages in the MEO/MEAO'",
				"description": "queries information relating to on-boarded application packages in the MEO/MEAO",
				"operationId": "onboarded_app_packagesGET",
        "parameters": [
          {
				"parameters": [{
						"name": "filter",
						"in": "query",
						"description": "Attribute-based filtering parameters according to ETSI GS MEC 009",
@@ -348,8 +343,7 @@
				"summary": "Queries the information related to individual application package resources",
				"description": "Queries the information related to individual application package resources",
				"operationId": "app_packageGET",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -358,8 +352,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"200": {
						"description": "Contains a representation of the application package resource",
@@ -403,8 +396,7 @@
				"summary": "Deletes an individual application package resources in MEO/MEAO",
				"description": "Deletes an individual application package resources in MEO/MEAO",
				"operationId": "app_packageDELETE",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -413,8 +405,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"204": {
						"description": "No Content",
@@ -449,8 +440,7 @@
				"summary": "Updates the operational state of an individual application package resource",
				"description": "Updates the operational state of an individual application package resources",
				"operationId": "app_packagePATCH",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -459,8 +449,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"requestBody": {
					"description": "Parameters for application package information modification.",
					"content": {
@@ -518,8 +507,7 @@
				"summary": "Queries the information related to individual application package resources",
				"description": "Queries the information related to individual application package resources",
				"operationId": "onboarded_app_packageGET",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -528,8 +516,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"200": {
						"description": "Contains a representation of the application package resource",
@@ -573,8 +560,7 @@
				"summary": "Deletes an individual application package resources in MEO/MEAO",
				"description": "Deletes an individual application package resources in MEO/MEAO",
				"operationId": "onboarded_app_packageDELETE",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -583,8 +569,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"204": {
						"description": "No Content",
@@ -619,8 +604,7 @@
				"summary": "Updates the operational state of an individual application package resource",
				"description": "Updates the operational state of an individual application package resources",
				"operationId": "onboarded_app_packagePATCH",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an individual application package resource",
@@ -629,8 +613,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"requestBody": {
					"description": "Parameters for application package information modification.",
					"content": {
@@ -708,7 +691,7 @@
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AppPkgSubscriptionInfo",
                  "descriprion": "Upon success, a response message contentrepresenting the created subscription shall bereturned."
									"description": "Upon success, a response message contentrepresenting the created subscription shall bereturned."
								}
							}
						}
@@ -815,8 +798,7 @@
				"summary": "Used to represent an individual subscription to notifications about application package changes.",
				"description": "Used to represent an individual subscription to notifications about application package changes.",
				"operationId": "individualSubscriptionGET",
        "parameters": [
          {
				"parameters": [{
					"name": "subscriptionId",
					"in": "path",
					"description": "Identifier of an individual subscription to notifications about application package changes",
@@ -825,8 +807,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"200": {
						"description": "a response body containing a representation of the resource shall be returned.",
@@ -835,7 +816,7 @@
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AppPkgSubscriptionInfo",
                  "descriprion": "Upon success, a response message content containing a representation of the resource shall be returned."
									"description": "Upon success, a response message content containing a representation of the resource shall be returned."
								}
							}
						}
@@ -868,8 +849,7 @@
				"summary": "Deletes the individual subscription to notifications about application package changes in MEO or MEAO.",
				"description": "Deletes the individual subscription to notifications about application package changes in MEO or MEAO.",
				"operationId": "individualSubscriptionDELETE",
        "parameters": [
          {
				"parameters": [{
					"name": "subscriptionId",
					"in": "path",
					"description": "Identifier of an individual subscription to notifications about application package changes",
@@ -878,8 +858,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"204": {
						"description": "No Content",
@@ -917,8 +896,7 @@
				"summary": "Reads the content of the AppD of on-boarded individual application package resources.",
				"description": "Reads the content of the AppD of on-boarded individual application package resources.",
				"operationId": "appPkgIdGET",
        "parameters": [
          {
				"parameters": [{
						"name": "appPkgId",
						"in": "path",
						"description": "Identifier of an on-boarded individual application package",
@@ -987,7 +965,7 @@
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/AppD",
                  "descriprion": "Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.The \"Content-Type\" HTTP header shall be set according to the format of the returned file, which is selected according to \"Accept\" HTTP header options passed in the request."
									"description": "Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.The \"Content-Type\" HTTP header shall be set according to the format of the returned file, which is selected according to \"Accept\" HTTP header options passed in the request."
								}
							},
							"application/zip": {}
@@ -1024,8 +1002,7 @@
				"summary": "Reads the content of the AppD of on-boarded individual application package resources.",
				"description": "Reads the content of the AppD of on-boarded individual application package resources.",
				"operationId": "appDGET",
        "parameters": [
          {
				"parameters": [{
						"name": "appDId",
						"in": "path",
						"description": "Identifier of an application descriptor",
@@ -1094,7 +1071,7 @@
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/AppD",
                  "descriprion": "Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.The \"Content-Type\" HTTP header shall be set according to the format of the returned file, which is selected according to \"Accept\" HTTP header options passed in the request."
									"description": "Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.The \"Content-Type\" HTTP header shall be set according to the format of the returned file, which is selected according to \"Accept\" HTTP header options passed in the request."
								}
							},
							"application/zip": {}
@@ -1131,8 +1108,7 @@
				"summary": "Fetch the onboarded application package content identified by appPkgId or appDId.",
				"description": "Fetch the onboarded application package content identified by appPkgId or appDId.",
				"operationId": "appPkgGET",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an on-boarded individual application package",
@@ -1141,8 +1117,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"200": {
						"description": "The payload body shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.",
@@ -1186,8 +1161,7 @@
				"summary": "Uploads the content of application package.",
				"description": "Uploads the content of application package.",
				"operationId": "appPkgPUT",
        "parameters": [
          {
				"parameters": [{
					"name": "appPkgId",
					"in": "path",
					"description": "Identifier of an on-boarded individual application package",
@@ -1196,8 +1170,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"202": {
						"description": "The application package has been accepted for uploading, but the processing has not been completed.",
@@ -1235,8 +1208,7 @@
				"summary": "Fetch the onboarded application package content identified by appPkgId or appDId.",
				"description": "Fetch the onboarded application package content identified by appPkgId or appDId.",
				"operationId": "appDIdGET",
        "parameters": [
          {
				"parameters": [{
					"name": "appDId",
					"in": "path",
					"description": "Identifier of an application descriptor",
@@ -1245,8 +1217,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"200": {
						"description": "The payload body shall contain a copy of the file representing the AppD or a ZIP file that contains the file or multiple files representing the AppD.",
@@ -1286,8 +1257,7 @@
				"summary": "Fetch the onboarded application package content identified by appPkgId or appDId.",
				"description": "Uploads the content of application package.",
				"operationId": "appDIdPUT",
        "parameters": [
          {
				"parameters": [{
					"name": "appDId",
					"in": "path",
					"description": "Identifier of an application descriptor",
@@ -1296,8 +1266,7 @@
					"schema": {
						"type": "string"
					}
          }
        ],
				}],
				"responses": {
					"202": {
						"description": "The application package has been accepted for uploading, but the processing has not been completed.",
@@ -1524,12 +1493,13 @@
						},
						"description": "Identifies version(s) of MEC system compatible with the MEC application described in this version of the AppD. The value shall be formatted as comma-separated list of strings. Each entry shall have the format <x>.<y>.<z> where <x>, <y> and <z> are decimal numbers representing the version of the present document. Whitespace between list entries shall be trimmed before validation."
					},
          "virtualStorageDescriptor": null,
					"virtualStorageDescriptor": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/VirtualStorageDescriptor"
						},
          "description": "Defines descriptors of virtual storage resources to be used by the MEC application.",
						"description": "Defines descriptors of virtual storage resources to be used by the MEC application."
					},
					"userContextTransferCapability": {
						"type": "string",
						"$ref": "#/components/schemas/UserContextTransferCapability"
@@ -1633,7 +1603,6 @@
					},
					"userContextTransferSupport": {
						"type": "boolean",
            "nullable": true,
						"description": "This attribute shall be present if the application is stateful and absent otherwise. If the application supports user context transfer, set to true. Otherwise, set to false."
					}
				},
@@ -1644,6 +1613,11 @@
			},
			"VirtualStorageDescriptor": {
				"type": "object",
				"description": "Defines descriptors of virtual storage resources to be used by the MEC application.",
				"required": [
					"id",
					"typeOfStorage"
				],
				"properties": {
					"id": {
						"type": "string",
@@ -1694,13 +1668,13 @@
					"supportedMigrationType": {
						"type": "array",
						"items": {
              "type": "string"
            },
							"type": "string",
							"enum": [
								"NO_MIGRATION",
								"OFFLINE_MIGRATION",
								"LIVE_MIGRATION"
            ],
							]
						},
						"description": "Specifies the allowed migration types in order of preference in case of an impact."
					},
					"maxUndetectableInterruptionTime": {
@@ -1821,10 +1795,9 @@
				"properties": {
					"layerProtocol": {
						"type": "array",
            "items": {
              "type": "string"
            },
						"description": "Specifies the protocols that the VL uses.",
						"items": {
							"type": "string",
							"enum": [
								"Ethernet",
								"MPLS",
@@ -1832,8 +1805,9 @@
								"IPV4",
								"IPV6",
								"Pseudo-Wire",
              "Etc."
            ],
								"Etc"
							]
						},
						"minItems": 1
					},
					"flowPattern": {
@@ -3200,7 +3174,5 @@
			}
		}
	},
  "security": [
    {}
  ]
	"security": [{}]
}
 No newline at end of file
+25 −22
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ paths:
            application/json:
              schema:
                $ref: '#/components/schemas/AppPkgSubscriptionInfo'
                descriprion:  Upon success, a response message contentrepresenting the created subscription shall bereturned.
                description:  Upon success, a response message contentrepresenting the created subscription shall bereturned.
        '400':
          $ref: '#/components/responses/400'
        '401':
@@ -574,7 +574,7 @@ paths:
            application/json:
              schema:
                $ref: '#/components/schemas/AppPkgSubscriptionInfo'
                descriprion: Upon success, a response message content containing a representation of the resource shall be returned.
                description: Upon success, a response message content containing a representation of the resource shall be returned.
        '400':
          $ref: '#/components/responses/400'
        '401':
@@ -679,7 +679,7 @@ paths:
            text/plain:
              schema:
                $ref: '#/components/schemas/AppD'
                descriprion: Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a 
                description: Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a 
                              ZIP file that contains the file or multiple files representing the AppD.The "Content-Type" HTTP header shall be set according to the format of the returned file, which is 
                              selected according to "Accept" HTTP header options passed in the request.
            application/zip: {}
@@ -755,7 +755,7 @@ paths:
            text/plain:
              schema:
                $ref: '#/components/schemas/AppD'
                descriprion: Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a 
                description: Indicates the success of request, and the content of the AppD is returned.The response message content shall contain a copy of the file representing the AppD or a 
                              ZIP file that contains the file or multiple files representing the AppD.The "Content-Type" HTTP header shall be set according to the format of the returned file, which is 
                              selected according to "Accept" HTTP header options passed in the request.
            application/zip: {}
@@ -1165,7 +1165,6 @@ components:
          description: If the application is stateful, this attribute shall be set to true. Otherwise, set to false.
        userContextTransferSupport:
          type: boolean
          nullable: true
          description: This attribute shall be present if the application is stateful and absent otherwise. If the application supports user context transfer, set to true. Otherwise, set to false.
      required:
        - statefulApplication
@@ -1173,6 +1172,10 @@ components:

    VirtualStorageDescriptor:
      type: object
      description: Defines descriptors of virtual storage resources to be used by the MEC application. 
      required:
        - id
        - typeOfStorage
      properties:
        id:
          type: string
@@ -1304,9 +1307,9 @@ components:
      properties:
        layerProtocol:
          type: array
          description: Specifies the protocols that the VL uses.
          items:
            type: string
          description: Specifies the protocols that the VL uses.
            enum:
              - Ethernet
              - MPLS
@@ -1314,7 +1317,7 @@ components:
              - IPV4
              - IPV6
              - Pseudo-Wire
          - Etc.
              - Etc
          minItems: 1
        flowPattern:
          type: string