https://github.com/bugbiteme/rest-api
for testing
https://github.com/bugbiteme/rest-api
Last synced: about 1 month ago
JSON representation
for testing
- Host: GitHub
- URL: https://github.com/bugbiteme/rest-api
- Owner: bugbiteme
- Created: 2026-05-27T22:23:03.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-29T23:03:01.000Z (about 2 months ago)
- Last Synced: 2026-05-29T23:09:31.303Z (about 2 months ago)
- Language: Dockerfile
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-app
RestAPI to test with RHDH
Code, pipeline, and deployment.
## Running with Podman
Build the container image from the repository root:
```bash
podman build -t demo-app -f Containerfile .
```
Run the container, mapping port 8000:
```bash
podman run --rm -p 8000:8000 demo-app
```
Test the API:
```bash
curl http://localhost:8000/api/v1/hello
```
Expected response:
```json
{"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.