RestAPI to test with RHDH
Code, pipeline, and deployment.
Build the container image from the repository root:
podman build -t demo-app -f Containerfile .Run the container, mapping port 8000:
podman run --rm -p 8000:8000 demo-appTest the API:
curl http://localhost:8000/api/v1/helloExpected response:
{"message":"hello world"}FastAPI serves interactive API docs at /docs. With the container running, open:
From there you can explore and try the GET /api/v1/hello endpoint.