Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update v1 openapi
Browse files Browse the repository at this point in the history
Ns2Kracy committed Jun 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7cc8489 commit 9c4337f
Showing 1 changed file with 63 additions and 15 deletions.
78 changes: 63 additions & 15 deletions api/app_management/openapi_v1.yaml
Original file line number Diff line number Diff line change
@@ -36,11 +36,7 @@ paths:
- Container methods
responses:
"200":
$ref: "#/components/responses/ResponseOK"
"404":
$ref: "#/components/responses/ResponseNotFound"
"500":
$ref: "#/components/responses/ResponseInternalServerError"
$ref: "#/components/responses/ResponseAppUsageList"

/{id}:
patch:
@@ -106,9 +102,7 @@ paths:
- $ref: "#/components/parameters/ContainerID"
responses:
"200":
$ref: "#/components/responses/ResponseOK"
"404":
$ref: "#/components/responses/ResponseNotFound"
$ref: "#/components/responses/ResponseComposeApp"
"500":
$ref: "#/components/responses/ResponseInternalServerError"

@@ -122,11 +116,7 @@ paths:
- Container methods
responses:
"200":
$ref: "#/components/responses/ResponseOK"
"404":
$ref: "#/components/responses/ResponseNotFound"
"500":
$ref: "#/components/responses/ResponseInternalServerError"
$ref: "#/components/responses/ResponseDockerNetworks"

/archive/{id}:
get:
@@ -141,8 +131,6 @@ paths:
responses:
"200":
$ref: "#/components/responses/ResponseOK"
"404":
$ref: "#/components/responses/ResponseNotFound"
"500":
$ref: "#/components/responses/ResponseInternalServerError"

@@ -249,10 +237,70 @@ components:
schema:
$ref: "#/components/schemas/BaseResponse"

ResponseAppUsageList:
description: App usage list
content:
application/json:
schema:
properties:
data:
type: array
items:
$ref: "#/components/schemas/DockerStats"

ResponseDockerNetworks:
description: Docker networks
content:
application/json:
schema:
properties:
data:
type: array
items:
type: object
properties:
name:
type: string
example: "bridge"
driver:
type: string
example: "bridge"
id:
type: string
example: "f7b9"
ResponseComposeApp:
description: Compose app
content:
application/json:
schema:
$ref: "#/components/schemas/ComposeApp"


schemas:
BaseResponse:
properties:
message:
description: message returned by server side if there is any
type: string
example: ""
DockerStats:
properties:
icon:
type: string
example: "https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_logo_64px.png"
title:
type: string
example: "CasaOS"
data:
type: object
previous:
type: object
ComposeApp:
type: object
description: |-
See [Compose Specification](https://compose-spec.io) for the schema structure of `ComposeApp`.
x-go-type: types.Project
x-go-type-import:
name: types
path: github.com/compose-spec/compose-go/types

0 comments on commit 9c4337f

Please sign in to comment.