Mocks a specific API endpoint with a hardcoded inline JSON response body. Supports fixtures for reusable API endpoints.
Given I pw mock the API endpoint "/api/users" with body '{"id": 1, "name": "Fake"}' Copy
Given I pw mock the API endpoint "/api/users" with body '{"id": 1, "name": "Fake"}'
Mocks a specific API endpoint with a hardcoded inline JSON response body. Supports fixtures for reusable API endpoints.