#!/usr/bin/env bash # The authoritative endpoint list: what the RUNNING application publishes with exposure = "*". set -uo pipefail cd "$(dirname "$0")/.." OUT=docs/output/02-endpoint-catalogue.txt { echo "### Every web-exposed endpoint, read from the running application" echo "### profiles: exposeall,open management.endpoints.web.exposure.include: \"*\"" echo echo "\$ curl -s http://localhost:8080/actuator/diag" curl -s http://localhost:8080/actuator/diag | python3 -m json.tool } > "$OUT" 2>&1 echo "wrote $OUT"