Drop-in replacement for api.ivr.fi made using Crystal.
Find a file
2024-07-19 18:13:41 -04:00
config 0.2.0 2024-06-22 02:48:22 -04:00
src 0.2.5: Add token validation. 2024-07-19 18:13:41 -04:00
.gitignore 0.2.0 2024-06-22 02:48:22 -04:00
README.md 0.2.1: Add support for contract type and team. 2024-06-22 04:11:35 -04:00
schema.graphql 0.2.0 2024-06-22 02:48:22 -04:00
schema.json 0.2.0 2024-06-22 02:48:22 -04:00
shard.lock 0.2.0 2024-06-22 02:48:22 -04:00
shard.yml 0.2.2: Fix something that I do not remember. Remove duplicated code. 2024-06-23 01:12:56 -04:00

How to run

  • Clone repo
  • Copy the config/config.example.yml to config/config.yml
  • Fill every option
  • Compile using shards build --release
  • Run ./bin/ivr-api-crystal

TODO

  • Use Redis to cache replies and add a new key to report for how much time the JSON is going to be stored in cache Done.
  • Add other endpoints from api.ivr.fi Almost done.
  • Capture more than 1 param: ?login=fijxu,fijxu Done.

NOT SO IMPORTANT TODO

  • STOP USING KEMAL FOR SIMPLE THINGS Nevermind, kemal is pretty useful and it should stay
  • programAgreement { type } in the Next commit Done.
  • Guide on how to get the tokens to get it working
  • Kick API

Suggestions

3:45 RyanPotat: add team Done.