forked from leaderboardsgg/leaderboard-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Leaderboard Endpoint (leaderboardsgg#256)
* Add Patch method to TestApiClient. * Make LB Info non-nullable. * Don't explicitly set null Info. * Separate NotEmpty from Slug constraint. * Add UpdateLeaderboardRequest. * Fix Leaderboard Name docstring. * Make LB test class public. * Add update leaderboard tests. * Add test for updating only one field. * Use reusable results. * Add UpdateLeaderboard service method. * Remove duplicate result. * Let deleted boards be updated. * Fix boolean logic error in validation. * Add a test case for blank names. * Add more LB update request validation. * Add update LB endpoint. * Update openapi.json. * formatting * Don't mark UpdateLeaderboard fields nullable. * Document missing 422 response.
- Loading branch information
Showing
17 changed files
with
966 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.