Update documentation

This commit is contained in:
Corder Guy 2018-04-28 20:34:59 -05:00
parent 4153adbfaa
commit 205f0ab120

View file

@ -3,9 +3,12 @@
Base url = `https://corder.tech` Base url = `https://corder.tech`
| Endpoint | Return | Implemented? | | Endpoint | Return | Implemented? |
| ---------------------------------- | ------------------------------- | ------------ | | ------------------------------------- | --------------------------------- | ------------ |
| `/mocha/users/{user_id}` | row with the given user | Yes | | `/mocha/users/{user_id}` | row with the given user | Yes |
| `/mocha/users/*` | all rows | Yes | | `/mocha/users/*` | all rows | Yes |
| `/mocha/top/{n}` | users with the n highest scores | Yes | | `/mocha/top/{n}` | users with the n highest scores | Yes |
| `/mocha/set/{user_id}/{new_score}` | 200 OK if successful | No | | `/mocha/update/{user_id}/{new_score}` | 200 OK if successful | Yes |
| `/mocha/register/{username}` | Authentication token for new user | Yes |
| `/mocha/avatar/{user_id}` | Avatar string for the user | Yes |
| `/mocha/avatar/{user_id}/{avatar}` | 200 OK if successful | Yes |