Persistent data managing API to be used by a Telegram bot serving a public transportation service 🤖🚌💾
APACHE-2.0 License
Data manager for Telegram bots based on serving Stops/Bus information for a public transportation system. Written mainly to use with the VigoBus-TelegramBot.
The data manager store all the persistent data the bot works with, mainly the Saved Stops that bot users can store, on MongoDB.
The communication between the bot backend and this data manager is through a REST API, serving GET, POST and DELETE endpoint methods. The API is powered by FastAPI and fully async.
/status
: get API status (healthcheck)/stops/{user_id}
: get all the Stops saved by the given User/stops
: insert or update a Saved Stop (stop data in body request)/stops/{user_id}/{stop_id}
: remove the given Stop from the given User/stops/{user_id}
: remove all the Stops from the given Userstopid
, userid
, name
to stop_id
, user_id
, stop_name