- I acknowledge the shittiness of this code
- Couldn't fucking care less
- Not willing to maintain this anymore (but have to)
- No one pays me for that
- L + Ratio
🚀 Blazingly fast 🚀, 🚀Memory-safe🚀, 🚀Optimized🚀 HTTP REST API server for 🚀schedule conversion🚀 from 🤮 https://ktmu-sutd.ru 🤮
- Getting daily or weekly schedule's JSON
GET localhost:8080/schedule/daily
orGET localhost:8080/schedule/weekly
- Enojoy heavily nested and large JSON
- Or, to get schedule only for one group, use something like
GET localhost:8080/schedule/daily?group=<GROUP>
- Force update with a POST request
- Get your temporary key if still didn't:
GET localhost:8080/schedule/interact
- Request an update:
POST localhost:8080/schedule/update?key=<YOUR TEMP KEY>
- After some time it'll return a JSON of changes in schedule (or
null
fields if there aren't any)
- Get your temporary key if still didn't:
- Subscription to update events using WebSocket
- Get your temporary key if still didn't:
GET localhost:8080/schedule/interact
- WebSocket to
localhost:8080/schedule/updates?key=<YOUR TEMP KEY>
- Periodically (10 min) it'll send a JSON of changes in schedule (or
null
fields if there aren't any)
- Get your temporary key if still didn't:
To avoid duplicates 🤪
When you are attached to WebSocket events and also make POST update request, you may get the same notify as a WebSocket event AND as an update response 😮
So keys is just a filter to determine if a WebSocket client should receive the notify
ktmuslave is a schedule bot for this server working both in VK and Telegram with some cool features
Probs not useful for anything else except for learning 🤔