From a98efcc3b255c6dbb7588760e88d841a18f4b6fd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 21 Apr 2024 20:02:05 +0000 Subject: [PATCH] Generate OpenAPI schema [skip ci] --- src/openapi.json | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/openapi.json b/src/openapi.json index 36a231a..01fbbe4 100644 --- a/src/openapi.json +++ b/src/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.3", "info": { "title": "cs2-battle-bot-api", - "version": "0.0.20" + "version": "0.0.21" }, "paths": { "/api/account-connect-link": { @@ -1300,9 +1300,20 @@ } } }, - "/api/matches/webhook/": { + "/api/matches/{id}/webhook/": { "post": { "operationId": "matches_webhook_create", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "description": "A unique integer value identifying this match.", + "required": true + } + ], "tags": [ "matches" ], @@ -1703,18 +1714,11 @@ "parameters": [ { "in": "query", - "name": "guild", + "name": "guild_or_public", "schema": { "type": "string" } }, - { - "in": "query", - "name": "is_public", - "schema": { - "type": "boolean" - } - }, { "name": "page", "required": false, @@ -2639,6 +2643,11 @@ "type": "string", "readOnly": true }, + "config": { + "type": "object", + "additionalProperties": {}, + "readOnly": true + }, "webhook_url": { "type": "string", "readOnly": true @@ -2699,6 +2708,7 @@ }, "required": [ "author", + "config", "config_url", "connect_command", "created_at", @@ -3478,6 +3488,11 @@ "type": "string", "readOnly": true }, + "config": { + "type": "object", + "additionalProperties": {}, + "readOnly": true + }, "webhook_url": { "type": "string", "readOnly": true