Skip to content
New issue

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

Restore Leaderboard Endpoint #240

Open
Tracked by #238
TheTedder opened this issue Aug 21, 2024 · 0 comments
Open
Tracked by #238

Restore Leaderboard Endpoint #240

TheTedder opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request high priority
Milestone

Comments

@TheTedder
Copy link
Contributor

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 to null and return a 204 status code.

@TheTedder TheTedder added enhancement New feature or request high priority labels Aug 21, 2024
@TheTedder TheTedder added this to the MVP milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority
Projects
None yet
Development

No branches or pull requests

1 participant