Skip to content

Commit

Permalink
fix: show server status again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer92000 committed Jan 30, 2025
1 parent 47c1ab3 commit 1ab3421
Show file tree
Hide file tree
Showing 15 changed files with 1,545 additions and 15 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ on:
- "v*.*.*"

jobs:
ensure_version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check version match
run: |
TAG_VERSION="${{ github.ref_name#v }}"
FILE_VERSION=$(jq -r '.version' src/mod.json)
if [[ "$TAG_VERSION" == "$FILE_VERSION" ]]; then
exit 0
else
echo "Version mismatch: Tag is $TAG_VERSION, but mod.json has $FILE_VERSION"
exit 1
fi
build:
strategy:
fail-fast: false
Expand Down
256 changes: 256 additions & 0 deletions backend/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,62 @@
"schema": {
"type": "integer"
}
},
{
"name": "filter[status]",
"in": "query",
"description": "Filter by status.",
"schema": {
"type": "string"
}
},
{
"name": "filter[appLocationSettingId]",
"in": "query",
"description": "Filter by AppLocationSetting ID.",
"schema": {
"type": "integer"
}
},
{
"name": "filter[serverConfigId]",
"in": "query",
"description": "Filter by ServerConfig ID.",
"schema": {
"type": "integer"
}
},
{
"name": "filter[locationCity]",
"in": "query",
"description": "Filter by location city.",
"schema": {
"type": "string"
}
},
{
"name": "filter[locationCityDisplay]",
"in": "query",
"description": "Filter by location city display name.",
"schema": {
"type": "string"
}
},
{
"name": "filter[locationContinent]",
"in": "query",
"description": "Filter by location continent.",
"schema": {
"type": "string"
}
},
{
"name": "filter[locationCountry]",
"in": "query",
"description": "Filter by location country.",
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -1658,6 +1714,164 @@
}
}
},
"\/v1\/services\/{dockerService}\/metadata": {
"put": {
"operationId": "docker-services.metadata.set",
"summary": "Set or update metadata for the service",
"tags": [
"Docker",
"DockerService"
],
"parameters": [
{
"name": "dockerService",
"in": "path",
"required": true,
"description": "The docker service ID",
"schema": {
"type": "integer"
}
}
],
"requestBody": {
"content": {
"application\/json": {
"schema": {
"$ref": "#\/components\/schemas\/SetMetadataRequest"
}
}
}
},
"responses": {
"200": {
"description": "`Server`",
"content": {
"application\/json": {
"schema": {
"$ref": "#\/components\/schemas\/Server"
}
}
}
},
"404": {
"$ref": "#\/components\/responses\/ModelNotFoundException"
},
"401": {
"$ref": "#\/components\/responses\/AuthenticationException"
},
"422": {
"$ref": "#\/components\/responses\/ValidationException"
},
"403": {
"$ref": "#\/components\/responses\/AuthorizationException"
}
}
},
"delete": {
"operationId": "docker-services.metadata.delete",
"summary": "Delete specific metadata keys from the service",
"tags": [
"Docker",
"DockerService"
],
"parameters": [
{
"name": "dockerService",
"in": "path",
"required": true,
"description": "The docker service ID",
"schema": {
"type": "integer"
}
},
{
"name": "metadata",
"in": "query",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application\/json": {
"schema": {
"anyOf": [
{
"type": "object"
},
{
"$ref": "#\/components\/schemas\/Server"
}
]
}
}
}
},
"404": {
"$ref": "#\/components\/responses\/ModelNotFoundException"
},
"401": {
"$ref": "#\/components\/responses\/AuthenticationException"
},
"422": {
"$ref": "#\/components\/responses\/ValidationException"
},
"403": {
"$ref": "#\/components\/responses\/AuthorizationException"
}
}
}
},
"\/v1\/services\/{dockerService}\/metadata\/all": {
"delete": {
"operationId": "docker-services.metadata.delete.all",
"summary": "Delete all metadata from the service",
"tags": [
"Docker",
"DockerService"
],
"parameters": [
{
"name": "dockerService",
"in": "path",
"required": true,
"description": "The docker service ID",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "`Server`",
"content": {
"application\/json": {
"schema": {
"$ref": "#\/components\/schemas\/Server"
}
}
}
},
"404": {
"$ref": "#\/components\/responses\/ModelNotFoundException"
},
"401": {
"$ref": "#\/components\/responses\/AuthenticationException"
},
"403": {
"$ref": "#\/components\/responses\/AuthorizationException"
}
}
}
},
"\/v1\/nodes\/locations": {
"get": {
"operationId": "getLocations",
Expand Down Expand Up @@ -2816,6 +3030,28 @@
},
"title": "LocationCollection"
},
"Metadata": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "The metadata key"
},
"value": {}
},
"required": [
"key",
"value"
],
"title": "Metadata"
},
"MetadataCollection": {
"type": "array",
"items": {
"$ref": "#\/components\/schemas\/Metadata"
},
"title": "MetadataCollection"
},
"Mount": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3193,6 +3429,13 @@
"description": "The last backup of the service",
"$ref": "#\/components\/schemas\/Backup"
},
"metadata": {
"type": "object",
"description": "The metadata for the service",
"additionalProperties": {
"$ref": "#\/components\/schemas\/Metadata"
}
},
"createdAt": {
"type": [
"string",
Expand Down Expand Up @@ -3231,6 +3474,7 @@
"node",
"location",
"resources",
"metadata",
"createdAt",
"updatedAt"
],
Expand Down Expand Up @@ -3411,6 +3655,18 @@
],
"title": "ServiceLogs"
},
"SetMetadataRequest": {
"type": "object",
"properties": {
"metadata": {
"type": "array",
"items": {
"type": "string"
}
}
},
"title": "SetMetadataRequest"
},
"Steam": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions backend/api/.openapi-generator/FILES

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

Loading

0 comments on commit 1ab3421

Please sign in to comment.