Last active
November 9, 2017 12:01
-
-
Save Hiosdra/2e0077a47bc02a2ccb5e9191f7ad34e6 to your computer and use it in GitHub Desktop.
Api for codeDayRest
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
Api: | |
/generate?name=[user] -> String with user | |
/stage?name=[user] -> get actual stage in int | |
/validate json -> true/false | |
/users -> return json with all users | |
/cu?pass=[password]&name=[name] -> creates user | |
/au?pass=[password]&name=[name]&... -> admin settings for users (fields like user json) | |
/du?pass=[password]&name=[name] -> deletes user | |
validate json: | |
{ | |
"id":"name", | |
"vals":["5", "4", "c", "sth"] | |
} | |
users json: | |
[ | |
{ | |
"name": "Oskar", | |
"stage": 4, | |
"testCount": 15, | |
"solved": ["503", "22a", "kupa", "losowystring"] | |
}, | |
{ | |
"name": "Hosdra" | |
"stage": 1, | |
"testCount": 0, | |
"solved": ["2"] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment