Skip to content

Commit d7649ed

Browse files
authored
Merge pull request #63 from mulesoft-anypoint/dev
Merging Develop
2 parents a801b3c + 835a189 commit d7649ed

File tree

5 files changed

+1080
-9
lines changed

5 files changed

+1080
-9
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
**/.vscode/**
33
dist
4-
**/.DS_STORE
4+
**/.DS_STORE
5+
6+
.windsurfrules

spec/application_manager_v1.yml

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
openapi: 3.0.0
33
info:
4-
title: Deployment v1
4+
title: Application Manager v1
55
description: >
66
The Application Manager API exists to provide Mule Application management operations from Anypoint Control Planes to any Runtime Plane, with capabilities that include:
77
- Deploying a Mule Application or API to a Mule Runtime
@@ -12,7 +12,7 @@ info:
1212
- Starting, Stopping or Restarting applications
1313
- etc.
1414
This API currently supports deployments to Cloudhub 1.0 targets only.
15-
version: 1.2.0
15+
version: 2.0.0
1616

1717
servers:
1818
- url: https://anypoint.mulesoft.com
@@ -115,7 +115,10 @@ paths:
115115
content:
116116
multipart/form-data:
117117
schema:
118-
$ref: "#/components/schemas/DeployAppBody"
118+
$ref: "#/components/schemas/DeployAppBodyFormData"
119+
application/json:
120+
schema:
121+
$ref: "#/components/schemas/DeployAppBodyJSON"
119122
responses:
120123
"200":
121124
$ref: "#/components/responses/PostDeploymentResponse"
@@ -194,7 +197,10 @@ paths:
194197
content:
195198
multipart/form-data:
196199
schema:
197-
$ref: "#/components/schemas/UpdateDeploymentBody"
200+
$ref: "#/components/schemas/UpdateDeploymentBodyFormData"
201+
application/json:
202+
schema:
203+
$ref: "#/components/schemas/UpdateDeploymentBodyJSON"
198204
responses:
199205
"200":
200206
$ref: "#/components/responses/PutDeploymentResponse"
@@ -296,8 +302,9 @@ components:
296302
items:
297303
$ref: "#/components/schemas/DeploymentCH1Summary"
298304

299-
DeployAppBody:
305+
DeployAppBodyFormData:
300306
type: object
307+
description: Application deployment body to deploy from file.
301308
properties:
302309
appInfoJson:
303310
type: string
@@ -311,8 +318,23 @@ components:
311318
type: boolean
312319
description: Indicates whether the application should be automatically started after deployment.
313320

314-
UpdateDeploymentBody:
321+
DeployAppBodyJSON:
322+
type: object
323+
description: Application deployment body to deploy from exchange.
324+
properties:
325+
applicationInfo:
326+
$ref: "#/components/schemas/NewDeploymentStruct"
327+
description: Application deployment body containing configuration and artifact file.
328+
applicationSource:
329+
$ref: "#/components/schemas/ExchangeApplicationSource"
330+
description: Application source in Exchange.
331+
autoStart:
332+
type: boolean
333+
description: Indicates whether the application should be automatically started after deployment.
334+
335+
UpdateDeploymentBodyFormData:
315336
type: object
337+
description: Application deployment body to update a deployment from file.
316338
properties:
317339
appInfoJson:
318340
type: string
@@ -323,6 +345,17 @@ components:
323345
format: binary
324346
description: The Mule application artifact to be deployed.
325347

348+
UpdateDeploymentBodyJSON:
349+
type: object
350+
description: Application deployment body to update a deployment from exchange.
351+
properties:
352+
applicationInfo:
353+
$ref: "#/components/schemas/NewDeploymentStruct"
354+
description: Application deployment body containing configuration and artifact file.
355+
applicationSource:
356+
$ref: "#/components/schemas/ExchangeApplicationSource"
357+
description: Application source in Exchange.
358+
326359
NewDeploymentStruct:
327360
type: object
328361
properties:
@@ -1046,4 +1079,27 @@ components:
10461079
description: "The IP address."
10471080
state:
10481081
type: string
1049-
description: "The state of the IP address (ex. available, in use)."
1082+
description: "The state of the IP address (ex. available, in use)."
1083+
1084+
1085+
ExchangeApplicationSource:
1086+
type: object
1087+
description: "The source of the application in Exchange."
1088+
properties:
1089+
source:
1090+
type: string
1091+
enum:
1092+
- EXCHANGE
1093+
description: "The source of the application in Exchange."
1094+
groupId:
1095+
type: string
1096+
description: "The group ID of the application in Exchange."
1097+
artifactId:
1098+
type: string
1099+
description: "The artifact ID of the application in Exchange."
1100+
version:
1101+
type: string
1102+
description: "The version of the application in Exchange."
1103+
organizationId:
1104+
type: string
1105+
description: "The organization ID of the application in Exchange."

spec/application_manager_v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
openapi: 3.0.0
44
info:
5-
title: Deployment
5+
title: Application Manager v2
66
description: >
77
The Application Manager API exists to provide Mule Application management operations from Anypoint Control Planes to any Runtime Plane, with capabilities that include:
88
- Deploying a Mule Application or API to a Mule Runtime

0 commit comments

Comments
 (0)