An API that allows searching in Switzerlands Postal Codes
- Caches Responses for 30 Minutes
- Compresses Responses with GZIP
- Fast JSON-Encoding
DB_CONN
CACHE_DURATION
- in Minutes
air
Run this command
swag init
RUn this first
asdf reshim
docker build -t plz-api .
Database needs to be running!
docker run --rm -p 3000:3000 --name plz_api -e DB_CONN="<DB_CONN>" plz-api
- Consider upping the time data stays in cache, because source only updates every month... Maybe to 1 Month?
- ...