[ui] Edit resources (#7062)

* [ui] Edit Resource

* Add deployByDefault
This commit is contained in:
Philippe Martin
2023-09-01 16:12:07 +02:00
committed by GitHub
parent e9dbded83b
commit cb8494387d
21 changed files with 466 additions and 15 deletions

View File

@@ -856,6 +856,78 @@ paths:
example:
message: "Error deleting the resource"
patch:
tags:
- devstate
description: Update a Kubernetes resource
parameters:
- name: resourceName
in: path
description: Resource name to update
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
inlined:
type: string
uri:
type: string
deployByDefault:
type: string
enum:
- never
- undefined
- always
responses:
'200':
description: resource 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 resource
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
example:
message: "Error updating the resource"
/devstate/volume:
post:
tags: