docs(api): correct endpoint /api/mma_status -> /api/gui/mma_status across docs
This commit is contained in:
@@ -167,7 +167,7 @@ def test_clean_install_runs_with_hooks(tmp_path):
|
||||
)
|
||||
|
||||
response = requests.get(
|
||||
f"http://127.0.0.1:{HOOK_PORT}/api/mma_status",
|
||||
f"http://127.0.0.1:{HOOK_PORT}/api/gui/mma_status",
|
||||
timeout=5.0,
|
||||
)
|
||||
assert response.status_code == 200, f"mma_status returned {response.status_code}"
|
||||
@@ -205,7 +205,7 @@ Expected: SKIPPED (RUN_CLEAN_INSTALL_TEST not set).
|
||||
```bash
|
||||
git -C C:\projects\manual_slop add tests/test_clean_install.py
|
||||
git -C C:\projects\manual_slop commit -m "test(clean-install): add opt-in clone-and-verify pytest test"
|
||||
git -C C:\projects\manual_slop log -1 --format='%H' | ForEach-Object { git -C C:\projects\manual_slop notes add -m "Clones the Gitea repo to tmp_path, runs uv sync, launches sloppy.py --enable-test-hooks, polls :8999/status until ready, then tests /api/mma_status write hook. Robust Windows/Unix process cleanup. Skipped unless RUN_CLEAN_INSTALL_TEST=1." $_ }
|
||||
git -C C:\projects\manual_slop log -1 --format='%H' | ForEach-Object { git -C C:\projects\manual_slop notes add -m "Clones the Gitea repo to tmp_path, runs uv sync, launches sloppy.py --enable-test-hooks, polls :8999/status until ready, then tests /api/gui/mma_status write hook. Robust Windows/Unix process cleanup. Skipped unless RUN_CLEAN_INSTALL_TEST=1." $_ }
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -507,7 +507,7 @@ Agents interact with the running container via the Hook API on `:8999`. Examples
|
||||
curl http://<your-unraid-ip>:8999/status
|
||||
|
||||
# Get MMA state
|
||||
curl http://<your-unraid-ip>:8999/api/mma_status
|
||||
curl http://<your-unraid-ip>:8999/api/gui/mma_status
|
||||
```
|
||||
|
||||
See [guide_tools.md](guide_tools.md) for the full Hook API reference.
|
||||
|
||||
@@ -116,7 +116,7 @@ def test_clean_install_runs_with_hooks(tmp_path):
|
||||
|
||||
# 5. Test a write hook (any POST endpoint that should respond)
|
||||
response = requests.get(
|
||||
"http://127.0.0.1:8999/api/mma_status",
|
||||
"http://127.0.0.1:8999/api/gui/mma_status",
|
||||
timeout=5.0,
|
||||
)
|
||||
assert response.status_code == 200
|
||||
|
||||
@@ -272,7 +272,7 @@ def _docker_available() -> bool:
|
||||
- `docker build -t manual_slop:latest .` succeeds on a clean machine
|
||||
- `docker compose up` starts the container, and `:8999/status` returns 200 within 60s
|
||||
- `curl http://localhost:8080/` returns the web client HTML
|
||||
- An agent can `curl http://localhost:8999/api/mma_status` and get a valid response
|
||||
- An agent can `curl http://localhost:8999/api/gui/mma_status` and get a valid response
|
||||
- The user can navigate to the web UI in a browser and see the ImGui panels
|
||||
- File operations on `/projects` persist across container restarts
|
||||
- Env vars for API keys are not committed to the image (use runtime env)
|
||||
|
||||
Reference in New Issue
Block a user