initial commit
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 1m43s

Change-Id: I3184ea3bc23ecc769c9de5fad0a0a0229e353629
This commit is contained in:
Scaffolder
2026-03-23 23:19:03 +00:00
commit d10e2ce029
19 changed files with 1089 additions and 0 deletions

22
docs/api.md Normal file
View File

@@ -0,0 +1,22 @@
# API Reference
Base URL: `https://test-alex-gitops-1.kyndemo.live`
Interactive docs: `/docs` (Swagger UI) · `/redoc` (ReDoc)
## Items
| Method | Path | Description |
|--------|------|-------------|
| GET | `/api/items` | List items |
| POST | `/api/items` | Create item `{"name":"..","description":".."}` |
| GET | `/api/items/{id}` | Get by ID |
| PUT | `/api/items/{id}` | Update |
| DELETE | `/api/items/{id}` | Delete |
## Observability
| Path | Description |
|------|-------------|
| `/health` | `{"status":"UP"}` |
| `/metrics` | Prometheus text format |

32
docs/architecture.md Normal file
View File

@@ -0,0 +1,32 @@
# Architecture
`test-alex-gitops-1` is a Python 3.12 **FastAPI** application served by **Uvicorn**.
## Components
| Component | Technology |
|-----------|-----------|
| Web framework | FastAPI 0.111 |
| ASGI server | Uvicorn |
| Metrics | prometheus-fastapi-instrumentator → `/metrics` |
| Validation | Pydantic v2 models |
| Health | Custom `/health` endpoint |
| API docs | Built-in Swagger UI at `/docs` |
## Deployment flow
```
Push to main
build-push.yml
docker build (python:3.12-slim)
docker push → ACR (OIDC)
deploy-humanitec.yml
humctl score deploy → Humanitec
AKS pod :8000
```

9
docs/index.md Normal file
View File

@@ -0,0 +1,9 @@
# Home
test-alex-gitops-1 — test-alex-gitops-1
- **Runtime**: Python 3.12 · FastAPI · Uvicorn
- **Owner**: group:default/platform-engineering
- **Deployment profile**: `stateless`
See [Architecture](architecture.md) and [API Reference](api.md).