mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-16 23:01:31 +02:00
yaak-playground
The API behind yaak.run, for trying Yaak without bringing your own.
- Users and todos are fixed sample data.
- Posts can be created, changed, and deleted. Each client IP gets its own copy, which goes back
to the sample data
YAAK_PLAYGROUND_RESET_AFTER_SECSafter its first write. POST /auth/tokenreturns a bearer token forGET /auth/me.POST /auth/sessionsets a session cookie forGET /auth/session. Any username with the passwordyaaklogs in.GET /lists every endpoint andGET /openapi.jsondescribes them.
Nothing is written to disk, so a restart resets everything.
cargo run -p yaak-playground # http://127.0.0.1:9228
Run yaak-playground --help for the limits. Behind a load balancer that sets
X-Forwarded-For, set YAAK_PLAYGROUND_TRUST_FORWARDED_FOR=true.
The image is Dockerfile.playground at the repo root.