initial commit
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 7m17s
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 7m17s
Change-Id: I15ddbaddac362bcec0e791a2508c9376349d177c
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# tmpl-test-go
|
||||
|
||||
Test scaffold for go runtime
|
||||
|
||||
**Runtime**: Go 1.22 · net/http
|
||||
**Owner**: platform-engineering
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
go mod tidy
|
||||
go run .
|
||||
```
|
||||
|
||||
Service on **http://localhost:8080**.
|
||||
|
||||
## Endpoints
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| GET | `/api/items` | List items |
|
||||
| POST | `/api/items` | Create item |
|
||||
| GET | `/api/items/{id}` | Get by ID |
|
||||
| PUT | `/api/items/{id}` | Update |
|
||||
| DELETE | `/api/items/{id}` | Delete |
|
||||
| GET | `/health` | `{"status":"UP"}` |
|
||||
| GET | `/metrics` | Prometheus metrics |
|
||||
|
||||
## Test
|
||||
```bash
|
||||
go test ./...
|
||||
```
|
||||
Reference in New Issue
Block a user