All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 1m43s
Change-Id: I3184ea3bc23ecc769c9de5fad0a0a0229e353629
37 lines
915 B
Markdown
37 lines
915 B
Markdown
# test-alex-gitops-1
|
|
|
|
test-alex-gitops-1
|
|
|
|
**Runtime**: Python 3.12 · FastAPI
|
|
**Owner**: group:default/platform-engineering
|
|
**Platform**: Humanitec · Project `test-alex-gitops-1`
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
python -m venv .venv && source .venv/bin/activate
|
|
pip install -r requirements.txt
|
|
uvicorn app.main:app --reload
|
|
```
|
|
|
|
Service listens on **http://localhost:8000**.
|
|
Swagger UI: **http://localhost:8000/docs**
|
|
|
|
## Endpoints
|
|
| Method | Path | Description |
|
|
|--------|------|-------------|
|
|
| GET | `/api/items` | List all items |
|
|
| POST | `/api/items` | Create an item |
|
|
| GET | `/api/items/{id}` | Get by ID |
|
|
| PUT | `/api/items/{id}` | Update |
|
|
| DELETE | `/api/items/{id}` | Delete |
|
|
| GET | `/health` | Health check |
|
|
| GET | `/metrics` | Prometheus metrics |
|
|
| GET | `/docs` | Swagger UI |
|
|
|
|
## Container
|
|
```bash
|
|
docker build -t test-alex-gitops-1:dev .
|
|
docker run -p 8000:8000 test-alex-gitops-1:dev
|
|
```
|