Skip to content

Commit 4d7e2ba

Browse files
committed
chore: update API
1 parent 0b6f37e commit 4d7e2ba

93 files changed

Lines changed: 95 additions & 358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/api.json

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.1.0",
33
"info": {
44
"title": "ODIN Fleet API",
5-
"version": "0.9.1",
5+
"version": "0.9.2",
66
"description": "API to access Odin Fleet, empowering developers to deploy gameservers all around the world in just a few lines of code.\n\nTo authenticate, users must send their email, password, and session ID to the **[`\/api\/auth`](\/operations\/getAuthToken)** endpoint. Upon successful authentication, an API token will be provided. This token should be included in the `Authorization` header as a Bearer token for all subsequent requests.\n \nAlternatively, you can copy your API key directly from our **[`console`](https:\/\/console.4players.io)** by opening any app, and then going to **Settings -> API Keys**."
77
},
88
"servers": [
@@ -4103,12 +4103,8 @@
41034103
"type",
41044104
"-cpuLimit",
41054105
"cpuLimit",
4106-
"-cpuReservation",
4107-
"cpuReservation",
41084106
"-memoryLimitMiB",
4109-
"memoryLimitMiB",
4110-
"-memoryReservationMiB",
4111-
"memoryReservationMiB"
4107+
"memoryLimitMiB"
41124108
],
41134109
"items": {
41144110
"type": "string"
@@ -4163,29 +4159,13 @@
41634159
"type": "integer"
41644160
}
41654161
},
4166-
{
4167-
"name": "filter[cpuReservation]",
4168-
"in": "query",
4169-
"description": "Filter by CPU reservation. Maps to the `cpu_reservation` column.",
4170-
"schema": {
4171-
"type": "integer"
4172-
}
4173-
},
41744162
{
41754163
"name": "filter[memoryLimitMiB]",
41764164
"in": "query",
41774165
"description": "Filter by memory limit in MiB. Maps to the `memory_limit_mebibytes` column.",
41784166
"schema": {
41794167
"type": "integer"
41804168
}
4181-
},
4182-
{
4183-
"name": "filter[memoryReservationMiB]",
4184-
"in": "query",
4185-
"description": "Filter by memory reservation in MiB. Maps to the `memory_reservation_mebibytes` column.",
4186-
"schema": {
4187-
"type": "integer"
4188-
}
41894169
}
41904170
],
41914171
"responses": {
@@ -6029,24 +6009,6 @@
60296009
],
60306010
"title": "Protocol"
60316011
},
6032-
"ResourceAllocations": {
6033-
"type": "object",
6034-
"properties": {
6035-
"limits": {
6036-
"description": "The limits set for the server",
6037-
"$ref": "#\/components\/schemas\/Resources"
6038-
},
6039-
"reservations": {
6040-
"description": "The resources that are reserved for the server",
6041-
"$ref": "#\/components\/schemas\/Resources"
6042-
}
6043-
},
6044-
"required": [
6045-
"limits",
6046-
"reservations"
6047-
],
6048-
"title": "ResourceAllocations"
6049-
},
60506012
"ResourcePackage": {
60516013
"type": "object",
60526014
"properties": {
@@ -6104,24 +6066,6 @@
61046066
],
61056067
"title": "ResourcePackageType"
61066068
},
6107-
"Resources": {
6108-
"type": "object",
6109-
"properties": {
6110-
"cpu": {
6111-
"type": "integer",
6112-
"description": "The amount of cpu to allocate in cores"
6113-
},
6114-
"memory": {
6115-
"type": "integer",
6116-
"description": "The amount of memory to allocate in GB"
6117-
}
6118-
},
6119-
"required": [
6120-
"cpu",
6121-
"memory"
6122-
],
6123-
"title": "Resources"
6124-
},
61256069
"RestartPolicy": {
61266070
"type": "object",
61276071
"properties": {
@@ -6982,10 +6926,6 @@
69826926
"$ref": "#\/components\/schemas\/SecretFile"
69836927
}
69846928
},
6985-
"resources": {
6986-
"description": "The resources used in this server configuration",
6987-
"$ref": "#\/components\/schemas\/ResourceAllocations"
6988-
},
69896929
"restartPolicy": {
69906930
"description": "The restart policy of the server configuration",
69916931
"$ref": "#\/components\/schemas\/RestartPolicy"
@@ -7275,10 +7215,6 @@
72757215
"$ref": "#\/components\/schemas\/SecretFile"
72767216
}
72777217
},
7278-
"resources": {
7279-
"description": "The resources used in this server configuration",
7280-
"$ref": "#\/components\/schemas\/ResourceAllocations"
7281-
},
72827218
"restartPolicy": {
72837219
"description": "The restart policy of the server configuration",
72847220
"$ref": "#\/components\/schemas\/RestartPolicy"

backend/api/.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/AppApi.md

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/apis/AppApi.ts

Lines changed: 1 addition & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/App.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/AppBillingState.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/AppLocationSetting.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/AppLocationSettingStatus.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/AppStatus.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/models/Architecture.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)