This is the Bodleian backend service, deployed to Google Cloud Run.
$ ./mvnw spring-boot:run
...
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.6.3)
$ http localhost:8080/actuator/health
HTTP/1.1 200 OK
Content-Length: 15
Content-Type: application/vnd.spring-boot.actuator.v3+json
{
"status": "UP"
}
Fetch the URL of the deployed service
$ URL=$(gcloud run services describe bodleian --format json | jq -r '.status.url')
Login and rememeber the token
$ AUTH=$(gcloud auth print-identity-token)
Call the service
$ curl -H "Authorization: Bearer $AUTH" $URL/actuator/health
{"status":"UP"}