initial commit
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 46s
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 46s
Change-Id: I15e0d095273278f8531caa7399565fe92857a7ad
This commit is contained in:
36
README.md
Normal file
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# test-alex-1
|
||||
|
||||
test-alex-1
|
||||
|
||||
**Runtime**: Python 3.12 · FastAPI
|
||||
**Owner**: group:default/platform-engineering
|
||||
**Platform**: Humanitec · Project `cjot-platform`
|
||||
|
||||
## 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-1:dev .
|
||||
docker run -p 8000:8000 test-alex-1:dev
|
||||
```
|
||||
Reference in New Issue
Block a user