Spaces:
Sleeping
Sleeping
Download manual/health.sh from dangkhoa2016/Nodejs-JSON-API-Server: direct link, hf CLI and curl.
- Browser
- Download file 191 Bytes
-
https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/manual/health.sh
- Command line
-
hf download hf://spaces/dangkhoa2016/Nodejs-JSON-API-Server/manual/health.sh
-
curl -L -o health.sh https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/manual/health.sh
191 Bytes
| BASE_URL=http://localhost:3000 | |
| # Health check | |
| curl -s "$BASE_URL/health" | jq . | |
| # API root info | |
| curl -s "$BASE_URL/api" | jq . | |
| # CORS preflight | |
| curl -s -X OPTIONS "$BASE_URL/api/todos" -I | |