Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui] Update commands #7073

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 206 additions & 0 deletions ododevapispec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,71 @@ paths:
example:
message: "Error adding the Apply command"

/devstate/applyCommand/{commandName}:
patch:
tags:
- devstate
description: Update an Apply Command
parameters:
- name: commandName
in: path
description: Command name to update
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
component:
type: string
responses:
'200':
description: Apply command was successfully updated
content:
application/json:
schema:
$ref: '#/components/schemas/DevfileContent'
example:
{
"content": "schemaVersion: 2.2.0\n",
"commands": [],
"containers": [],
"images": [],
"resources": [],
"events": {
"preStart": null,
"postStart": null,
"preStop": null,
"postStop": null
},
"metadata": {
"name": "",
"version": "",
"displayName": "",
description": "",
"tags": "",
"architectures": "",
"icon": "",
"globalMemoryLimit": "",
"projectType": "",
"language": "",
"website": "",
"provider": "",
"supportUrl": ""
}
}
'500':
description: Error updating the Apply command
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
example:
message: "Error updating the Apply command"

/devstate/command/{commandName}:
delete:
tags:
Expand Down Expand Up @@ -1418,6 +1483,76 @@ paths:
example:
message: "Error adding the Composite command"

/devstate/compositeCommand/{commandName}:
patch:
tags:
- devstate
description: Update a Composite Command
parameters:
- name: commandName
in: path
description: Command name to update
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
parallel:
type: boolean
commands:
type: array
items:
type: string

responses:
'200':
description: Composite command was successfully updated
content:
application/json:
schema:
$ref: '#/components/schemas/DevfileContent'
example:
{
"content": "schemaVersion: 2.2.0\n",
"commands": [],
"containers": [],
"images": [],
"resources": [],
"events": {
"preStart": null,
"postStart": null,
"preStop": null,
"postStop": null
},
"metadata": {
"name": "",
"version": "",
"displayName": "",
description": "",
"tags": "",
"architectures": "",
"icon": "",
"globalMemoryLimit": "",
"projectType": "",
"language": "",
"website": "",
"provider": "",
"supportUrl": ""
}
}
'500':
description: Error updating the Composite command
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
example:
message: "Error updating the Composite command"

/devstate/execCommand:
post:
tags:
Expand Down Expand Up @@ -1485,6 +1620,77 @@ paths:
example:
message: "Error adding the Exec command"

/devstate/execCommand/{commandName}:
patch:
tags:
- devstate
description: Update an Exec Command
parameters:
- name: commandName
in: path
description: Command name to update
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
component:
type: string
commandLine:
type: string
workingDir:
type: string
hotReloadCapable:
type: boolean
responses:
'200':
description: Exec command was successfully updated
content:
application/json:
schema:
$ref: '#/components/schemas/DevfileContent'
example:
{
"content": "schemaVersion: 2.2.0\n",
"commands": [],
"containers": [],
"images": [],
"resources": [],
"events": {
"preStart": null,
"postStart": null,
"preStop": null,
"postStop": null
},
"metadata": {
"name": "",
"version": "",
"displayName": "",
description": "",
"tags": "",
"architectures": "",
"icon": "",
"globalMemoryLimit": "",
"projectType": "",
"language": "",
"website": "",
"provider": "",
"supportUrl": ""
}
}
'500':
description: Error updating the Exec command
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
example:
message: "Error updating the Exec command"

/devstate/events:
put:
tags:
Expand Down
3 changes: 3 additions & 0 deletions pkg/apiserver-gen/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pkg/apiserver-gen/go/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading