Files
smoa/scripts/export-openapi-local.sh
T
defiQUG a2dc194a49 Monorepo: Gitea CI, docs, auth/sync, backend APIs, gitignore
- Add Gitea Actions workflow; point README to gitea.d-bis.org/Sankofa_Phoenix/SMOA
- Expand .gitignore for Spring H2 data, secrets, Kotlin .kotlin/, tooling
- Track docs/api/generated ReDoc bundle; refresh api docs README
- Android: network/auth/sync, UI shell, tests; backend credentials/integrity APIs
- Docs, scripts (generate-api-docs), modules and core updates

Made-with: Cursor
2026-03-23 20:19:24 -07:00

9 lines
318 B
Bash
Executable File

#!/usr/bin/env bash
# Export OpenAPI JSON from a running SMOA backend (default http://localhost:8080).
# Usage: ./scripts/export-openapi-local.sh [BASE_URL] [OUTPUT_PATH]
set -euo pipefail
BASE="${1:-http://localhost:8080}"
OUT="${2:-openapi-export.json}"
curl -sSf "${BASE%/}/v3/api-docs" -o "$OUT"
echo "Wrote $OUT"