docs: generate gitea wiki pages + publish script
add wiki/ markdown pages (Home, Sidebar, architecture, transport, developer, usage) add scripts/publish_gitea_wiki.sh to sync wiki repo fix: serialize aggregate env-setting tests to avoid parallel env var races
This commit is contained in:
28
wiki/API-Examples.md
Normal file
28
wiki/API-Examples.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# API Examples
|
||||
|
||||
## Projection Query via Gateway (HTTP → gRPC)
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
-H "x-tenant-id: tenant-a" \
|
||||
-H "x-correlation-id: demo" \
|
||||
-H "traceparent: 00-00000000000000000000000000000001-0000000000000001-01" \
|
||||
http://localhost:8080/v1/query/User \
|
||||
-d '{"uqf":"{\"eq\":{\"id\":\"u1\"}}"}'
|
||||
```
|
||||
|
||||
## Projection Query via gRPC (direct, internal)
|
||||
```bash
|
||||
grpcurl -d '{"tenant_id":"tenant-a","view_type":"User","uqf":"{}"}' \
|
||||
-H 'x-tenant-id: tenant-a' \
|
||||
-H 'x-correlation-id: demo' \
|
||||
-H 'traceparent: 00-00000000000000000000000000000001-0000000000000001-01' \
|
||||
-plaintext localhost:9090 projection.gateway.v1.QueryService/ExecuteQuery
|
||||
```
|
||||
|
||||
## Runner Admin via Gateway (HTTP → gRPC)
|
||||
```bash
|
||||
curl -sS -X POST \
|
||||
-H "x-tenant-id: tenant-a" \
|
||||
-H "authorization: Bearer <token>" \
|
||||
http://localhost:8080/admin/runner/drain?wait_ms=0
|
||||
```
|
||||
Reference in New Issue
Block a user