mocks
- Repo stars 357
- License GPL-2.0
- Author repo woocommerce-ios
WireMock Mock Server
Manage the WireMock mock server that serves API responses for UI tests and E2E verification.
Requires Java (brew install openjdk if missing).
Start
./API-Mocks/scripts/start.sh 8282 &
sleep 3
Verify it's running:
curl -s http://localhost:8282/__admin/ > /dev/null && echo "WireMock running on port 8282" || echo "WireMock failed to start"
If Java is not installed, report the prerequisite and stop.
Stop
./API-Mocks/scripts/stop.sh 8282
Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:
kill $(lsof -ti:8282) 2>/dev/null
Details
- Port: 8282 (default)
- Mappings:
Modules/Sources/APIMocks/Resources/mappings/ - Response files:
Modules/Sources/APIMocks/Resources/__files/ - Start script:
API-Mocks/scripts/start.sh - WireMock: auto-downloaded on first run (version configured in
start.sh)
- Fluxly category
- Other
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 94 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @woocommerce · GPL-2.0
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Detected network behavior
- External requests
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. Verify it's running: If Java is not installed, report the prerequisite and stop.
Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:
Port: 8282 (default) Mappings: Modules/Sources/APIMocks/Resources/mappings/ Response files: Modules/Sources/APIMocks/Resources/files/
# WireMock Mock Server
Manage the WireMock mock server that serves API responses for UI tests and E2E verification.
Requires **Java** (`brew install openjdk` if missing).
## Start
```bash
./API-Mocks/scripts/start.sh 8282 &
sleep 3
```
Verify it's running:
```bash
curl -s http://localhost:8282/__admin/ > /dev/null && echo "WireMock running on port 8282" || echo "WireMock failed to start"
```
If Java is not installed, report the prerequisite and stop.
## Stop
```bash
./API-Mocks/scripts/stop.sh 8282
```
Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:
```bash
kill $(lsof -ti:8282) 2>/dev/null
```
## Details
- **Port**: 8282 (default)
- **Mappings**: `Modules/Sources/APIMocks/Resources/mappings/`
- **Response files**: `Modules/Sources/APIMocks/Resources/__files/`
- **Start script**: `API-Mocks/scripts/start.sh`
- **WireMock**: auto-downloaded on first run (version configured in `start.sh`) Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Start → Stop → Details
terms -> Java · Port · Mappings · Response files · Start script · WireMock
files/cmd -> brew install openjdk · Modules/Sources/APIMocks/Resources/mappings/ · Modules/Sources/APIMocks/Resources/files/ · API-Mocks/scripts/start.sh · start.sh
body sha256 -> b084254db782
Decide Fit First
Design Intent
How To Use It
Boundaries And Review