Skip to content

bugbiteme/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-app

RestAPI to test with RHDH

Code, pipeline, and deployment.

Running with Podman

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-app

Test the API:

curl http://localhost:8000/api/v1/hello

Expected response:

{"message":"hello world"}

Swagger UI

FastAPI serves interactive API docs at /docs. With the container running, open:

http://localhost:8000/docs

From there you can explore and try the GET /api/v1/hello endpoint.

About

for testing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors