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.
mochaserverpine64backup/README.md

20 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2018-04-17 14:13:52 -05:00
# API endpoints:
2018-04-17 14:10:47 -05:00
2018-04-17 14:25:01 -05:00
Base url = `https://corder.tech`
2018-04-28 20:34:59 -05:00
| 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 |
2018-04-30 13:48:19 -05:00
| `/mocha/random` | Random user | Yes |
2018-05-04 11:08:38 -05:00
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.