2023-01-30 22:01:47 +00:00
openapi : 3.0 .3
info :
title : CasaOS API
version : v2
description : |
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_banner_dark_night_800px.png">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_banner_twilight_blue_800px.png">
<img alt="CasaOS" src="https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_banner_twilight_blue_800px.png">
</picture>
CasaOS API provides miscellaneous methods for different scenarios.
For issues and discussions, please visit the [GitHub repository](https://github.com/IceWhaleTech/CasaOS) or join [our Discord](https://discord.gg/knqAbbBbeX).
servers :
- url : /v2/casaos
tags :
- name : Health methods
description : |-
(TODO)
2023-02-08 10:11:46 +00:00
- name : File methods
description : |-
(TODO)
2023-01-30 22:01:47 +00:00
x-tagGroups :
- name : Methods
tags :
- Health methods
security :
- access_token : [ ]
paths :
/health/services :
get :
tags :
- Health methods
summary : Get service status
description : |-
Get running status of each `casaos-*` service.
operationId : getHealthServices
responses :
"200" :
$ref : "#/components/responses/GetHealthServicesOK"
"500" :
$ref : "#/components/responses/ResponseInternalServerError"
2023-04-24 20:10:15 +00:00
/health/ports :
get :
tags :
- Health methods
summary : Get port in use
operationId : getHealthPorts
responses :
"200" :
$ref : "#/components/responses/GetHealthPortsOK"
"500" :
$ref : "#/components/responses/ResponseInternalServerError"
2023-02-08 10:11:46 +00:00
/file/test :
get :
tags :
- File methods
summary : Test file methods
description : |-
Test file methods.
operationId : getFileTest
responses :
"200" :
$ref : "#/components/responses/ResponseOK"
"500" :
$ref : "#/components/responses/ResponseInternalServerError"
2023-01-30 22:01:47 +00:00
components :
securitySchemes :
access_token :
type : apiKey
in : header
name : Authorization
responses :
ResponseOK :
description : OK
content :
application/json :
schema :
$ref : "#/components/schemas/BaseResponse"
ResponseInternalServerError :
description : Internal Server Error
content :
application/json :
schema :
$ref : "#/components/schemas/BaseResponse"
GetHealthServicesOK :
description : OK
content :
application/json :
schema :
allOf :
- $ref : "#/components/schemas/BaseResponse"
- properties :
data :
$ref : "#/components/schemas/HealthServices"
2023-04-24 20:10:15 +00:00
GetHealthPortsOK :
description : OK
content :
application/json :
schema :
allOf :
- $ref : "#/components/schemas/BaseResponse"
- properties :
data :
$ref : "#/components/schemas/HealthPorts"
2023-01-30 22:01:47 +00:00
schemas :
BaseResponse :
properties :
message :
readOnly : true
description : message returned by server side if there is any
type : string
example : ""
HealthServices :
properties :
running :
type : array
items :
type : string
example : "casaos-gateway.service"
not_running :
type : array
items :
type : string
example : "casaos.service"
2023-04-24 20:10:15 +00:00
HealthPorts :
properties :
tcp :
type : array
items :
type : integer
example : 80
x-go-name : TCP
udp :
type : array
items :
type : integer
example : 53
x-go-name : UDP