Skip to content

Commit

Permalink
Update openapi.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Sep 22, 2023
1 parent 0d7ff04 commit 5798640
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions LeaderboardBackend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 5798640

Please sign in to comment.