We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUT /leaderboard/{id}/restore where {id} is a long.
PUT
/leaderboard/{id}/restore
The server must return a 401 error if the client is not authenticated.
The server must return a 403 error if the current user's role is not ADMIN.
ADMIN
The server must return a 404 error if the given ID does not correspond to a leaderboard in the database.
The server must return a 404 error if the given ID corresponds to a leaderboard that is not deleted.
The server may use a response body to disambiguate between the two different scenarios that can generate a 404 error.
Upon a successful restoration, the server must set the DeletedAt field of the corresponding leaderboard to null and return a 204 status code.
DeletedAt
null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PUT
/leaderboard/{id}/restore
where {id} is a long.The server must return a 401 error if the client is not authenticated.
The server must return a 403 error if the current user's role is not
ADMIN
.The server must return a 404 error if the given ID does not correspond to a leaderboard in the database.
The server must return a 404 error if the given ID corresponds to a leaderboard that is not deleted.
The server may use a response body to disambiguate between the two different scenarios that can generate a 404 error.
Upon a successful restoration, the server must set the
DeletedAt
field of the corresponding leaderboard tonull
and return a 204 status code.The text was updated successfully, but these errors were encountered: