Easy way to test GET/POST calls within your cluster. (GET /ping, GET /health, POST /data)
1.8K
https://github.com/atulram/hello-express#express-hello-world-app
docker pull atulram4/hello-express
docker run -p 3000:3000 atulram4/hello-express
curl http://localhost:3000/ - should display "Hello World!"
curl -X POST -H "Content-Type: application/json" -d '{"key": "value"}' http://localhost:3000/data - should respond with "Received POST request" when a POST request is made with a JSON payload
curl http://localhost:3000/ping - should respond with "Pong!" when a GET request is made
curl http://localhost:3000/health - should respond with "Server is healthy" and a 200 status code when a GET request is made
Content type
Image
Digest
sha256:bcd4b9ba3…
Size
43 MB
Last updated
over 3 years ago
docker pull atulram4/hello-express