restaurant-admin-bff/docs/api/restaurant-admin-workflows.md
2026-03-31 16:37:06 -06:00

28 lines
1.0 KiB
Markdown

# Restaurant Admin Workflow API
## Purpose
This BFF exposes restaurant-admin control-plane workflows over REST while delegating orchestration to `operations-service`.
## Endpoints
- `GET /api/restaurant/admin/config?contextId=<value>`
- Returns configuration snapshot, feature flags, service windows, and recent changes.
- `GET /api/restaurant/admin/changes?contextId=<value>`
- Returns recent configuration change history.
- `POST /api/restaurant/admin/service-window`
- Updates a service window and returns the applied snapshot.
## Upstream Dependency
- Base address configuration: `OperationsService:BaseAddress`
- Default runtime target: `http://operations-service:8080`
- Internal upstream routes:
- `GET /internal/operations/admin/config`
- `POST /internal/operations/admin/service-window`
## Notes
- The explicit change-history route is projected from the same admin config snapshot returned by `operations-service`.
- Correlation IDs are preserved through Thalos session checks and operations-service calls.