2020-08-10 10:11:42 +02:00
|
|
|
{
|
2022-09-09 07:31:24 +02:00
|
|
|
"x-generator": "NSwag v13.16.1.0 (NJsonSchema v10.7.2.0 (Newtonsoft.Json v10.0.0.0))",
|
2020-08-10 10:11:42 +02:00
|
|
|
"openapi": "3.0.0",
|
|
|
|
"info": {
|
|
|
|
"title": "My Title",
|
|
|
|
"version": "1.0.0"
|
|
|
|
},
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"url": "https://localhost:44304"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"paths": {
|
|
|
|
"/api/Servers": {
|
|
|
|
"delete": {
|
|
|
|
"tags": [
|
|
|
|
"Servers"
|
|
|
|
],
|
|
|
|
"operationId": "Servers_DeleteServer",
|
2022-09-09 07:31:24 +02:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "gameName",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"x-position": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "port",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"x-position": 2
|
|
|
|
}
|
|
|
|
],
|
2020-08-10 10:11:42 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"Servers"
|
|
|
|
],
|
|
|
|
"operationId": "Servers_GetServers",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/ServerInfoWithHostAddress"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"tags": [
|
|
|
|
"Servers"
|
|
|
|
],
|
|
|
|
"operationId": "Servers_AddServer",
|
|
|
|
"requestBody": {
|
|
|
|
"x-name": "serverInfo",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ServerInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": true,
|
|
|
|
"x-position": 1
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-16 11:52:58 +02:00
|
|
|
},
|
2022-09-09 07:31:24 +02:00
|
|
|
"/api/Branches": {
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"Branches"
|
|
|
|
],
|
|
|
|
"operationId": "Branches_GetBranches",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "appName",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"x-position": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-16 12:08:49 +02:00
|
|
|
"/api/Community": {
|
2020-08-16 11:52:58 +02:00
|
|
|
"get": {
|
|
|
|
"tags": [
|
2020-08-16 12:08:49 +02:00
|
|
|
"Community"
|
2020-08-10 10:11:42 +02:00
|
|
|
],
|
2020-08-16 12:08:49 +02:00
|
|
|
"operationId": "Community_GetDiscordStatus",
|
2020-08-16 11:52:58 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2020-08-16 12:08:49 +02:00
|
|
|
"$ref": "#/components/schemas/CommunityStatus"
|
2020-08-16 11:52:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-10 10:11:42 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-16 11:52:58 +02:00
|
|
|
}
|
|
|
|
},
|
2022-09-09 07:31:24 +02:00
|
|
|
"/api/CrashReports": {
|
|
|
|
"post": {
|
|
|
|
"tags": [
|
|
|
|
"CrashReports"
|
|
|
|
],
|
|
|
|
"operationId": "CrashReports_Upload",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-16 11:52:58 +02:00
|
|
|
"/api/Version": {
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"Version"
|
2020-08-10 10:11:42 +02:00
|
|
|
],
|
2020-08-16 11:52:58 +02:00
|
|
|
"operationId": "Version_GetVersionInfo",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "appName",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"x-position": 1
|
2022-09-09 07:31:24 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "branchName",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"x-position": 2
|
2020-08-16 11:52:58 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/VersionInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-10 10:11:42 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-09 07:31:24 +02:00
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"tags": [
|
|
|
|
"Version"
|
|
|
|
],
|
|
|
|
"operationId": "Version_UpdateVersionInfo",
|
|
|
|
"requestBody": {
|
|
|
|
"x-name": "versionInfoUpdate",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/VersionInfoUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": true,
|
|
|
|
"x-position": 1
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
2020-08-16 11:52:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"components": {
|
|
|
|
"schemas": {
|
2020-08-10 10:11:42 +02:00
|
|
|
"ServerInfoWithHostAddress": {
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/components/schemas/ServerInfo"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"hostIpAddress"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"hostIpAddress": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ServerInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"gameName",
|
|
|
|
"version",
|
|
|
|
"sessionName",
|
|
|
|
"port",
|
|
|
|
"mapName",
|
|
|
|
"gameType",
|
|
|
|
"numPlayers",
|
2022-09-09 07:31:24 +02:00
|
|
|
"maxPlayers",
|
2020-08-10 10:11:42 +02:00
|
|
|
"gameState",
|
|
|
|
"timeLimit",
|
|
|
|
"fragLimit",
|
|
|
|
"teamFragLimit",
|
|
|
|
"firstBaseComplete",
|
|
|
|
"playerInfo"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"gameName": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength": 100,
|
|
|
|
"minLength": 0
|
|
|
|
},
|
|
|
|
"version": {
|
2020-08-11 10:29:45 +02:00
|
|
|
"$ref": "#/components/schemas/AppVersion"
|
2020-08-10 10:11:42 +02:00
|
|
|
},
|
|
|
|
"sessionName": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength": 100,
|
|
|
|
"minLength": 0
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"mapName": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength": 300,
|
|
|
|
"minLength": 0
|
|
|
|
},
|
|
|
|
"gameType": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength": 100,
|
|
|
|
"minLength": 0
|
|
|
|
},
|
|
|
|
"numPlayers": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
2020-09-23 23:44:31 +02:00
|
|
|
"maxPlayers": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
2020-08-10 10:11:42 +02:00
|
|
|
"gameState": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength": 100,
|
|
|
|
"minLength": 0
|
|
|
|
},
|
|
|
|
"timeLimit": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"fragLimit": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"teamFragLimit": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"firstBaseComplete": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"playerInfo": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/PlayerInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-16 11:52:58 +02:00
|
|
|
"AppVersion": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"build",
|
|
|
|
"major",
|
|
|
|
"minor",
|
|
|
|
"revision"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"build": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"major": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"minor": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"revision": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-10 10:11:42 +02:00
|
|
|
"PlayerInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"index",
|
|
|
|
"name",
|
|
|
|
"frags",
|
|
|
|
"deaths",
|
|
|
|
"teamName"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"index": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
},
|
|
|
|
"frags": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"deaths": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"teamName": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
}
|
|
|
|
}
|
2020-08-16 11:52:58 +02:00
|
|
|
},
|
2020-08-16 12:08:49 +02:00
|
|
|
"CommunityStatus": {
|
2020-08-16 11:52:58 +02:00
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
2020-08-16 12:08:49 +02:00
|
|
|
"communityAppName": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"communityAppUri": {
|
2020-08-16 11:52:58 +02:00
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"VersionInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"appName",
|
|
|
|
"version",
|
2022-09-09 07:31:24 +02:00
|
|
|
"installerUri",
|
|
|
|
"branchName"
|
2020-08-16 11:52:58 +02:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"appName": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"$ref": "#/components/schemas/AppVersion"
|
|
|
|
},
|
|
|
|
"installerUri": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uri",
|
|
|
|
"minLength": 1
|
2022-09-09 07:31:24 +02:00
|
|
|
},
|
|
|
|
"branchName": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"VersionInfoUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"appName": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"appVersion": {
|
|
|
|
"nullable": true,
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/components/schemas/AppVersion"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"fileName": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"branchName": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"forceUpdate": {
|
|
|
|
"type": "boolean"
|
2020-08-16 11:52:58 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-10 10:11:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-09 07:31:24 +02:00
|
|
|
}
|