You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Corder Guy 3cc0214ee4 Update README 3 years ago
.gitignore oops wrong thing 3 years ago
README.md Update README 3 years ago
add_random_users.py Create script to add randomized test users 3 years ago
corder-tech.conf Add config file 3 years ago
db.sqlite3 Add config file 3 years ago
mocha_server.py Add random user fetching 3 years ago

README.md

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

On Ubuntu httd installations, the corder-tech.conf file goes in /etc/apache2/sites-available, with a symlink to that location placed in ../sites-enabled. This is all that needs to be done, assuming the Let's Encrypt TLS certs are installed in their default locations.