Skip to content

Commit

Permalink
Update openapi.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Oct 19, 2024
1 parent 0b3cda0 commit 42f9ade
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions LeaderboardBackend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,60 @@
}
}
},
"/leaderboard/{id}": {
"delete": {
"tags": [
"Leaderboards"
],
"summary": "Deletes a leaderboard. This request is restricted to Administrators.",
"operationId": "deleteLeaderboard",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"500": {
"description": "Internal Server Error"
},
"204": {
"description": "No Content"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "The leaderboard does not exist (Not Found) or was already deleted (Already Deleted).\nUse the title field of the response to differentiate between the two cases if necessary.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
}
},
"/api/run/{id}": {
"get": {
"tags": [
Expand Down

0 comments on commit 42f9ade

Please sign in to comment.