From aed4b2636c23e667aa0dbee72d3f28479bb756ed Mon Sep 17 00:00:00 2001 From: Jonathan Gainsley <38672162+gainsley@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:42:12 -0700 Subject: [PATCH 1/2] remove appid from appinstance path --- .../Edge-Application-Management.yaml | 37 +++++++------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/code/API_definitions/Edge-Application-Management.yaml b/code/API_definitions/Edge-Application-Management.yaml index fc4d684..5b7bab9 100644 --- a/code/API_definitions/Edge-Application-Management.yaml +++ b/code/API_definitions/Edge-Application-Management.yaml @@ -326,7 +326,7 @@ paths: '503': $ref: '#/components/responses/503' - /apps/{appId}/instances: + /appinstances: post: security: - openId: @@ -341,21 +341,19 @@ paths: operationId: createAppInstance parameters: - $ref: '#/components/parameters/x-correlator' - - name: appId - description: | - A globally unique identifier associated with the - application. Edge Cloud Provider generates this identifier when - the application is submitted. - in: path - required: true - schema: - $ref: '#/components/schemas/AppId' requestBody: - description: Array of Edge Cloud Zone + description: | + The Application ID and the array of Edge Cloud Zones to deploy + it to. content: application/json: schema: - $ref: '#/components/schemas/AppZones' + type: object + properties: + appId: + $ref: '#/components/schemas/AppId' + appZones: + $ref: '#/components/schemas/AppZones' required: true responses: '202': @@ -420,8 +418,8 @@ paths: the application. Edge Cloud Provider generates this identifier when the application is submitted. - in: path - required: true + in: query + required: false schema: $ref: '#/components/schemas/AppId' - name: appInstanceId @@ -467,7 +465,7 @@ paths: $ref: '#/components/responses/500' '503': $ref: '#/components/responses/503' - /apps/{appId}/instances/{appInstanceId}: + /appinstances/{appInstanceId}: delete: security: - openId: @@ -481,15 +479,6 @@ paths: operationId: deleteAppInstance parameters: - $ref: '#/components/parameters/x-correlator' - - name: appId - description: | - A globally unique identifier associated with the - application. Edge Cloud Provider generates this identifier - when the application is submitted. - in: path - required: true - schema: - $ref: '#/components/schemas/AppId' - name: appInstanceId in: path description: | From ba2a7048636a391fa8b6734d1cf57fce3da7d7b8 Mon Sep 17 00:00:00 2001 From: Jonathan Gainsley <38672162+gainsley@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:41:29 -0700 Subject: [PATCH 2/2] make appId required in post --- code/API_definitions/Edge-Application-Management.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/API_definitions/Edge-Application-Management.yaml b/code/API_definitions/Edge-Application-Management.yaml index 5b7bab9..3702fc4 100644 --- a/code/API_definitions/Edge-Application-Management.yaml +++ b/code/API_definitions/Edge-Application-Management.yaml @@ -349,6 +349,9 @@ paths: application/json: schema: type: object + required: + - appId + - appZones properties: appId: $ref: '#/components/schemas/AppId'