Last active
March 14, 2019 04:23
-
-
Save realStandal/6d1d6ff4b456ed5ff739f8d0715988ec to your computer and use it in GitHub Desktop.
CodersQuest sample leaderboard PUT request
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
{ | |
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate) | |
"username": "test", // Players name | |
"character": "char_name", // Character used during a particular level | |
"user_score": 2468, // Found by adding all the player's score of each indavidual project together | |
"project": { | |
"level": 1, // Current level of the project (repeated from the path parameter) | |
"score": 1234, // Remaining time a player had with a particular level (in miliseconds) | |
}, | |
"force_update": true // boolean to force the backend to update the held value for either the daily, weekly, or monthly high score | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment