diff --git a/src/components/repo/openapi.yaml b/src/components/repo/openapi.yaml deleted file mode 100644 index 7ebfe22..0000000 --- a/src/components/repo/openapi.yaml +++ /dev/null @@ -1,2210 +0,0 @@ -openapi: "3.1.0" -info: - title: "SteamWar API" - description: "SteamWar API" - version: "1.0.0" -servers: - - url: "https://SteamWar" -paths: - /auth: - delete: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "object" - post: - description: "" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UsernamePassword" - required: true - responses: - "403": - description: "Forbidden" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid username or password" - code: "invalid" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/AuthTokenResponse" - put: - description: "" - responses: - "403": - description: "Forbidden" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid token type" - code: "invalid" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/AuthTokenResponse" - /data/admin/gamemodes: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - type: "string" - /data/admin/gamemodes/{gamemode}/maps: - get: - description: "" - parameters: - - name: "gamemode" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid gamemode" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Gamemode not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - type: "string" - /data/admin/schematicTypes: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseSchematicType" - /data/admin/users: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseUser" - /data/me: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseUser" - /data/server: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/StatusResponse" - "500": - description: "Internal Server Error" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - /data/skin/{uuid}: - get: - description: "" - parameters: - - name: "uuid" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid UUID" - code: "null" - "200": - description: "OK
A file response" - content: - application/*: - schema: - type: "object" - format: "binary" - /data/team: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/Map_String" - /download/{code}: - get: - description: "" - parameters: - - name: "code" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "410": - description: "Gone" - content: - "*/*": - schema: - type: "object" - "403": - description: "Forbidden" - content: - "*/*": - schema: - type: "object" - "500": - description: "Internal Server Error" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - application/octet-stream: - schema: - type: "string" - format: "byte" - /download/{code}/info: - get: - description: "" - parameters: - - name: "code" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "410": - description: "Gone" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseSchematic" - /events: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ShortEvent" - post: - description: "" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid body" - code: "null" - "201": - description: "Created" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseEvent" - /events/{id}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "integer" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ExtendedResponseEvent" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid body" - code: "null" - Example#2: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseEvent" - /events/{id}/csv: - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - text/plain: - schema: - type: "string" - /events/{id}/fights: - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseEventFight" - post: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid body" - code: "null" - "201": - description: "Created" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseEventFight" - /events/{id}/fights/{fight}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "fight" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid fight ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Fight not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "object" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "fight" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid body" - code: "null" - Example#2: - description: "" - value: - error: "Invalid fight ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Fight not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseEventFight" - /events/{id}/groups: - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseGroups" - post: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateEventGroup" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseGroups" - /events/{id}/groups/{group}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "group" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "group" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseGroups" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "group" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateEventGroup" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseGroups" - /events/{id}/relations: - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseRelation" - post: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateEventRelation" - required: true - responses: - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseRelation" - /events/{id}/relations/{relation}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "relation" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "relation" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseRelation" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "relation" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateEventRelation" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseRelation" - /events/{id}/teams: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - type: "array" - items: - type: "integer" - format: "int32" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/ResponseTeam" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - requestBody: - content: - application/json: - schema: - type: "array" - items: - type: "integer" - format: "int32" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Invalid event ID" - code: "null" - "404": - description: "Not Found" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "Event not found" - code: "null" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - /page: - get: - description: "" - parameters: - - name: "branch" - in: "query" - required: false - schema: - type: "string" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - type: "array" - items: - $ref: "#/components/schemas/PageResponseList" - examples: - Example#1: - description: "" - value: [] - post: - description: "" - parameters: - - name: "branch" - in: "query" - required: false - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreatePageRequest" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "Invalid path" - "200": - description: "" - content: - "*/*": - schema: - type: "object" - /page/{id}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "integer" - - name: "branch" - in: "query" - required: false - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/DeletePageRequest" - required: true - responses: - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "Page not found" - "200": - description: "" - content: - "*/*": - schema: - type: "object" - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "integer" - - name: "branch" - in: "query" - required: false - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "Invalid id" - Example#2: - value: "Invalid id" - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "Page not found" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/PageResponse" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "integer" - - name: "branch" - in: "query" - required: false - schema: - type: "string" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdatePageRequest" - required: true - responses: - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "Page not found" - "200": - description: "" - content: - "*/*": - schema: - type: "object" - /page/branch: - delete: - description: "" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateBranchRequest" - required: true - responses: - "200": - description: "" - content: - "*/*": - schema: - type: "object" - get: - description: "" - responses: - "200": - description: "" - content: - "*/*": - schema: - type: "array" - items: - type: "string" - post: - description: "" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateBranchRequest" - required: true - responses: - "200": - description: "" - content: - "*/*": - schema: - type: "object" - /perms: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/RespondUserPerms" - examples: - Example#1: - description: "" - value: - prefixes: "null" - perms: [] - /perms/user/{id}: - get: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/RespondUserPermsPrefix" - examples: - Example#1: - description: "" - value: - prefix: "null" - perms: [] - /perms/user/{id}/{perm}: - delete: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "perm" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "202": - description: "Accepted" - content: - "*/*": - schema: - type: "object" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "perm" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "202": - description: "Accepted" - content: - "*/*": - schema: - type: "object" - "204": - description: "No Content" - content: - "*/*": - schema: - type: "object" - /perms/user/{id}/prefix/{prefix}: - put: - description: "" - parameters: - - name: "id" - in: "path" - required: true - schema: - type: "string" - - name: "prefix" - in: "path" - required: true - schema: - type: "string" - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - type: "object" - "202": - description: "Accepted" - content: - "*/*": - schema: - type: "object" - /schem: - post: - description: "" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UploadSchematic" - required: true - responses: - "400": - description: "Bad Request" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseError" - examples: - Example#1: - description: "" - value: - error: "null" - code: "UPLOAD_ERROR" - Example#2: - description: "" - value: - error: "INVALID_SUFFIX" - code: "null" - Example#3: - description: "" - value: - error: "INVALID_NAME" - code: "null" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/ResponseSchematic" - /stats/fights: - get: - description: "" - responses: - "200": - description: "OK" - content: - "*/*": - schema: {} - /stats/ranked/{gamemode}: - get: - description: "" - parameters: - - name: "gamemode" - in: "path" - required: true - schema: - type: "string" - responses: - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "object" - "200": - description: "OK" - content: - "*/*": - schema: {} - /stats/user: - get: - description: "" - responses: - "404": - description: "Not Found" - content: - "*/*": - schema: - type: "string" - examples: - Example#1: - value: "User not found" - "200": - description: "OK" - content: - "*/*": - schema: - $ref: "#/components/schemas/UserStats" -components: - schemas: - UsernamePassword: - type: "object" - properties: - name: - type: "string" - password: - type: "string" - keepLoggedIn: - type: "boolean" - required: - - "name" - - "password" - - "keepLoggedIn" - ResponseError: - type: "object" - properties: - error: - type: "string" - code: - type: "string" - required: - - "error" - - "code" - ResponseToken: - type: "object" - properties: - token: - type: "string" - expires: - type: "string" - required: - - "token" - - "expires" - AuthTokenResponse: - type: "object" - properties: - accessToken: - $ref: "#/components/schemas/ResponseToken" - refreshToken: - nullable: true - $ref: "#/components/schemas/ResponseToken" - required: - - "accessToken" - ResponseSchematicType: - type: "object" - properties: - name: - type: "string" - db: - type: "string" - required: - - "name" - - "db" - ResponseUser: - type: "object" - properties: - name: - type: "string" - uuid: - type: "string" - prefix: - type: "string" - perms: - type: "array" - items: - type: "string" - required: - - "name" - - "uuid" - - "prefix" - - "perms" - JsonElement: - type: "object" - properties: {} - Player: - type: "object" - properties: - name: - type: "string" - id: - type: "string" - required: - - "name" - - "id" - Players: - type: "object" - properties: - max: - type: "integer" - format: "int32" - online: - type: "integer" - format: "int32" - sample: - type: "array" - items: - $ref: "#/components/schemas/Player" - required: - - "max" - - "online" - - "sample" - Version: - type: "object" - properties: - name: - type: "string" - protocol: - type: "integer" - format: "int32" - required: - - "name" - - "protocol" - StatusResponse: - type: "object" - properties: - description: - $ref: "#/components/schemas/JsonElement" - players: - $ref: "#/components/schemas/Players" - version: - $ref: "#/components/schemas/Version" - favicon: - type: "string" - time: - type: "integer" - format: "int32" - nullable: true - default: "0" - required: - - "description" - - "players" - - "version" - - "favicon" - Map: - type: "object" - properties: {} - Map_String: - type: "string" - ResponseSchematic: - type: "object" - properties: - name: - type: "string" - id: - type: "integer" - format: "int32" - type: - type: "string" - nullable: true - owner: - type: "integer" - format: "int32" - item: - type: "string" - lastUpdate: - type: "integer" - format: "int64" - rank: - type: "integer" - format: "int32" - replaceColor: - type: "boolean" - allowReplay: - type: "boolean" - required: - - "name" - - "id" - - "owner" - - "item" - - "lastUpdate" - - "rank" - - "replaceColor" - - "allowReplay" - ShortEvent: - type: "object" - properties: - id: - type: "integer" - format: "int32" - name: - type: "string" - start: - type: "integer" - format: "int64" - end: - type: "integer" - format: "int64" - required: - - "id" - - "name" - - "start" - - "end" - ResponseEvent: - type: "object" - properties: - id: - type: "integer" - format: "int32" - name: - type: "string" - deadline: - type: "integer" - format: "int64" - start: - type: "integer" - format: "int64" - end: - type: "integer" - format: "int64" - maxTeamMembers: - type: "integer" - format: "int32" - schemType: - type: "string" - nullable: true - publicSchemsOnly: - type: "boolean" - required: - - "id" - - "name" - - "deadline" - - "start" - - "end" - - "maxTeamMembers" - - "publicSchemsOnly" - ResponseTeam: - type: "object" - properties: - id: - type: "integer" - format: "int32" - name: - type: "string" - kuerzel: - type: "string" - color: - type: "string" - required: - - "id" - - "name" - - "kuerzel" - - "color" - ResponseGroups: - type: "object" - properties: - id: - type: "integer" - format: "int32" - name: - type: "string" - pointsPerWin: - type: "integer" - format: "int32" - pointsPerLoss: - type: "integer" - format: "int32" - pointsPerDraw: - type: "integer" - format: "int32" - type: - type: "string" - enum: - - "GROUP_STAGE" - - "ELIMINATION_STAGE" - points: - type: "integer" - format: "int32" - required: - - "id" - - "name" - - "pointsPerWin" - - "pointsPerLoss" - - "pointsPerDraw" - - "type" - - "points" - ResponseEventFight: - type: "object" - properties: - id: - type: "integer" - format: "int32" - spielmodus: - type: "string" - map: - type: "string" - blueTeam: - $ref: "#/components/schemas/ResponseTeam" - redTeam: - $ref: "#/components/schemas/ResponseTeam" - start: - type: "integer" - format: "int64" - ergebnis: - type: "integer" - format: "int32" - spectatePort: - type: "integer" - format: "int32" - nullable: true - group: - nullable: true - $ref: "#/components/schemas/ResponseGroups" - required: - - "id" - - "spielmodus" - - "map" - - "blueTeam" - - "redTeam" - - "start" - - "ergebnis" - ResponseRelation: - type: "object" - properties: - id: - type: "integer" - format: "int32" - fight: - $ref: "#/components/schemas/ResponseEventFight" - type: - type: "string" - enum: - - "FIGHT" - - "GROUP" - fromFight: - nullable: true - $ref: "#/components/schemas/ResponseEventFight" - fromGroup: - nullable: true - $ref: "#/components/schemas/ResponseGroups" - fromPlace: - type: "integer" - format: "int32" - required: - - "id" - - "fight" - - "type" - - "fromPlace" - ExtendedResponseEvent: - type: "object" - properties: - event: - $ref: "#/components/schemas/ResponseEvent" - teams: - type: "array" - items: - $ref: "#/components/schemas/ResponseTeam" - groups: - type: "array" - items: - $ref: "#/components/schemas/ResponseGroups" - fights: - type: "array" - items: - $ref: "#/components/schemas/ResponseEventFight" - referees: - type: "array" - items: - $ref: "#/components/schemas/ResponseUser" - relations: - type: "array" - items: - $ref: "#/components/schemas/ResponseRelation" - required: - - "event" - - "teams" - - "groups" - - "fights" - - "referees" - - "relations" - CreateEventGroup: - type: "object" - properties: - name: - type: "string" - type: - type: "string" - enum: - - "GROUP_STAGE" - - "ELIMINATION_STAGE" - required: - - "name" - - "type" - UpdateEventGroup: - type: "object" - properties: - name: - type: "string" - nullable: true - type: - type: "string" - nullable: true - enum: - - "GROUP_STAGE" - - "ELIMINATION_STAGE" - pointsPerWin: - type: "integer" - format: "int32" - nullable: true - pointsPerLoss: - type: "integer" - format: "int32" - nullable: true - pointsPerDraw: - type: "integer" - format: "int32" - nullable: true - CreateEventRelation: - type: "object" - properties: - fightId: - type: "integer" - format: "int32" - team: - type: "string" - enum: - - "RED" - - "BLUE" - fromType: - type: "string" - enum: - - "FIGHT" - - "GROUP" - fromId: - type: "integer" - format: "int32" - fromPlace: - type: "integer" - format: "int32" - required: - - "fightId" - - "team" - - "fromType" - - "fromId" - - "fromPlace" - UpdateFromRelation: - type: "object" - properties: - fromType: - type: "string" - enum: - - "FIGHT" - - "GROUP" - fromId: - type: "integer" - format: "int32" - fromPlace: - type: "integer" - format: "int32" - required: - - "fromType" - - "fromId" - - "fromPlace" - UpdateEventRelation: - type: "object" - properties: - team: - type: "string" - nullable: true - enum: - - "RED" - - "BLUE" - from: - nullable: true - $ref: "#/components/schemas/UpdateFromRelation" - PageResponseList: - type: "object" - properties: - path: - type: "string" - name: - type: "string" - sha: - type: "string" - downloadUrl: - type: "string" - id: - type: "integer" - format: "int32" - required: - - "path" - - "name" - - "sha" - - "downloadUrl" - - "id" - CreatePageRequest: - type: "object" - properties: - path: - type: "string" - slug: - type: "string" - nullable: true - title: - type: "string" - nullable: true - required: - - "path" - DeletePageRequest: - type: "object" - properties: - sha: - type: "string" - message: - type: "string" - required: - - "sha" - - "message" - PageResponse: - type: "object" - properties: - path: - type: "string" - name: - type: "string" - sha: - type: "string" - downloadUrl: - type: "string" - content: - type: "string" - size: - type: "integer" - format: "int32" - id: - type: "integer" - format: "int32" - required: - - "path" - - "name" - - "sha" - - "downloadUrl" - - "content" - - "size" - - "id" - UpdatePageRequest: - type: "object" - properties: - content: - type: "string" - sha: - type: "string" - message: - type: "string" - required: - - "content" - - "sha" - - "message" - CreateBranchRequest: - type: "object" - properties: - branch: - type: "string" - required: - - "branch" - RespondUserPerms: - type: "object" - properties: - prefixes: - type: "string" - perms: - type: "array" - items: - type: "string" - required: - - "prefixes" - - "perms" - RespondPrefix: - type: "object" - properties: - name: - type: "string" - colorCode: - type: "string" - chatPrefix: - type: "string" - required: - - "name" - - "colorCode" - - "chatPrefix" - RespondUserPermsPrefix: - type: "object" - properties: - prefix: - $ref: "#/components/schemas/RespondPrefix" - perms: - type: "array" - items: - type: "string" - required: - - "prefix" - - "perms" - UploadSchematic: - type: "object" - properties: - name: - type: "string" - content: - type: "string" - required: - - "name" - - "content" - UserStats: - type: "object" - properties: - eventFightParticipation: - type: "integer" - format: "int32" - eventParticipation: - type: "integer" - format: "int32" - acceptedSchematics: - type: "integer" - format: "int32" - fights: - type: "integer" - format: "int32" - playtime: - type: "number" - format: "double" - required: - - "eventFightParticipation" - - "eventParticipation" - - "acceptedSchematics" - - "fights" - - "playtime"