From 57986400b69218142f0231de5782d5664592c357 Mon Sep 17 00:00:00 2001 From: Ted Wollman <25165500+TheTedder@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:17:15 -0400 Subject: [PATCH] Update openapi.json. --- LeaderboardBackend/openapi.json | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/LeaderboardBackend/openapi.json b/LeaderboardBackend/openapi.json index a3a963fe..77e6a6d0 100644 --- a/LeaderboardBackend/openapi.json +++ b/LeaderboardBackend/openapi.json @@ -206,6 +206,61 @@ } } }, + "/Account/confirm/{id}": { + "put": { + "tags": [ + "Account" + ], + "summary": "Confirms a user account.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The confirmation token.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9-_]{22}$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "The account was confirmed successfully." + }, + "400": { + "description": "The token was malformed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "The token provided was invalid or expired.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "409": { + "description": "The user's account was either already confirmed or banned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, "/api/Categories/{id}": { "get": { "tags": [