API for the canteens of UPB by using web scraping
Go to file
Moritz Hölting 94b1ffead7 combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
.github/workflows add ci workflow 2024-07-03 20:07:47 +02:00
.sqlx combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
examples bump version to 0.1.1 2024-07-03 15:39:03 +02:00
migrations change to use postgres db instead of scraping 2024-11-20 20:11:00 +01:00
scraper combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
web-api combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
.dockerignore combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
.gitignore implement first version 2024-07-02 17:38:48 +02:00
Cargo.lock combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
Cargo.toml combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
LICENSE add license 2024-07-06 15:04:43 +02:00
README.md add ca-certificates to docker image and add example 2024-07-03 14:55:08 +02:00
compose.yml combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00
dev-compose.yml combine repositories of web api and scraper 2024-11-20 21:45:30 +01:00

README.md

Mensa UPB API

Web scraper for the canteen of the University of Paderborn.

Configuration

The following environment variables are available:

Variable Description Default
API_INTERFACE The interface the API should listen on. 127.0.0.1
API_PORT The port the API should listen on. 8080
API_CORS_ALLOWED The allowed origins for CORS requests. None, set manually
API_RATE_LIMIT_SECONDS The time in seconds after which the rate limit should replenish. 5
API_RATE_LIMIT_BURST The maximum number of requests that can be made in a burst. 5