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 23, 2024
1 parent 1fe8c37 commit a030d64
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion 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"
}
}
}
}
}
}
},
"/leaderboard/{id}/restore": {
"put": {
"tags": [
Expand Down Expand Up @@ -1556,4 +1610,4 @@
"Bearer": [ ]
}
]
}
}

0 comments on commit a030d64

Please sign in to comment.