No description
This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2018-04-30 13:48:19 -05:00
.gitignore oops wrong thing 2018-04-17 14:07:14 -05:00
add_random_users.py Create script to add randomized test users 2018-04-24 15:11:50 -05:00
db.sqlite3 Add endpoint for avatar 2018-04-28 20:29:56 -05:00
mocha_server.py Add random user fetching 2018-04-30 13:47:18 -05:00
README.md Add random user fetching 2018-04-30 13:48:19 -05:00

API endpoints:

Base url = https://corder.tech

Endpoint Return Implemented?
/mocha/users/{user_id} row with the given user Yes
/mocha/users/* all rows Yes
/mocha/top/{n} users with the n highest scores Yes
/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
/mocha/random Random user Yes