Expand lab seed tiers, OpenAPI PARAMS, and console DATA/Params UX.

This commit is contained in:
2026-07-18 08:46:39 +03:00
parent f8d3cbdd59
commit 63cc409424
71 changed files with 38380 additions and 796 deletions
+47 -5
View File
@@ -2,24 +2,66 @@
# Web UI
Open [https://localhost/](https://localhost/) after `make up` (gateway).
Internal simulator port is `8080`; the lab UI is also on that host.
Open [https://localhost/](https://localhost/) after `make up` (gateway), or the
HTTPS URL printed by `make up-local`. Internal simulator port is `8080`; the lab
UI is also on that host.
The UI is a laboratory console for the **vSphere** simulator — not a vSphere Client
replacement. It supports light and dark themes, catalog majors **69** (vSphere 78.0U2
floors), request/response editing, history, and runtime contract apply.
## Screenshots
### Main console
![Web UI main console](images/web-ui-main.png)
### API catalog (majors 69)
![API catalog with vSphere 8.0 U2 selected](images/web-ui-api-catalog.png)
### Endpoint browser
![Endpoint tree and sample GET response](images/web-ui-endpoints.png)
### Request / response
![GET /api/vcenter/vm with filters and 200 response](images/web-ui-request.png)
![Request parameters editor](images/web-ui-request-params.png)
### History
![Request history panel](images/web-ui-history.png)
### Authentication
![Session sign-in (lab credentials)](images/web-ui-authentication.png)
### Data / seed
![Demo cluster and seed controls](images/web-ui-data.png)
### Environment
![Environment inventory summary](images/web-ui-environment.png)
### Help — compatibility
![Compatibility diagnostics (1092 / 1092)](images/web-ui-help-compatibility.png)
## Features
- Endpoint tree and method selector driven by the selected catalog major
- Contract-derived parameters and example payloads
- Query parameters pane (left column) with live query-string preview for GET filters
- Request editor, response viewer, and history
- Session login via `POST /api/session` (Basic) → `vmware-api-session-id` header/cookie
- Environment summary (runtime version, hosts, VMs, clusters, datastores, networks)
- Curl / request previews
- Coverage meter for the implemented REST registry
- **Apply as runtime** hot-swap for the active major floor
- Demo / seed load (large / demo-cluster profiles)
- Demo / seed load (`small` / `large` / `big` tiers in DATA)
- Compact console at `/console.html`
- Link to OpenAPI at `/docs`
@@ -44,8 +86,8 @@ After sign-in, Send attaches `vmware-api-session-id` automatically.
| GET | `/ui/api/compatibility?major=N` | Coverage payload |
| POST | `/ui/api/contract/apply?major=N` | Hot-swap runtime contract |
| GET | `/ui/api/demo/state` | Demo dataset state |
| POST | `/ui/api/demo/load` | Load `demo-cluster` |
| POST | `/ui/api/vsphere/seed?profile=…` | Reseed `small` / `large` / `demo-cluster` |
| POST | `/ui/api/demo/load` | Load `big` (20 hosts / 2000 VMs) |
| POST | `/ui/api/vsphere/seed?profile=…` | Reseed `small` / `large` / `big` |
## Version workflow