aarbit 877e134166
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Adds isAdmin to JWT
2026-05-16 16:14:29 -05:00
2026-05-16 16:14:29 -05:00
2026-05-15 14:25:12 -05:00
2025-12-03 11:13:08 -06:00
2025-12-03 11:13:08 -06:00
2026-05-15 23:42:09 -05:00
2026-05-15 14:32:15 -05:00
2025-12-03 11:18:18 -06:00

Scavenger Hunt API

REST API to support a community scavenger hunt app.

Prerequisites

  • Java 21
  • MariaDB
  • MinIO

Environment Variables

Variable Description
DB_URL JDBC URL for the MariaDB database
DB_USER Database username
DB_PASSWORD Database password
JWT_SECRET Secret key used to sign JWTs
MINIO_ENDPOINT MinIO server URL (e.g. http://localhost:9000)
MINIO_ACCESS_KEY MinIO access key
MINIO_SECRET_KEY MinIO secret key
MINIO_BUCKET MinIO bucket name for photo storage

Running

./gradlew bootRun

API Documentation

Swagger UI is available at /docs/swagger-ui.html when the application is running.

Authentication

All endpoints except /signup and /login require a JWT bearer token.

  1. Create an account: POST /signup
  2. Log in: POST /login — returns an access token and a refresh token
  3. Include the access token in requests: Authorization: Bearer <token>
  4. Refresh an expired token: POST /refresh
  5. Log out: POST /logout
Description
No description provided
Readme 349 KiB
Languages
Kotlin 99.6%
Dockerfile 0.4%