Docs

Intercepting Requests

Learn how to intercept API requests and modify responses using MockQL's dashboard. This guide walks you through the complete request interception workflow.

Dashboard Overview

The dashboard shows all your API endpoints, their methods, and current status. This central view gives you quick access to create, monitor, and test endpoints.

REST API Dashboard showing configured endpoints
REST API Dashboard showing configured endpoints

Creating an Endpoint

Click Create Endpoint to define a new API request to intercept. Specify the method, URL, headers, and request body as needed.

HTTP Method

GET, POST, PUT, DELETE

Request URL

Path with parameters

Headers

Authentication, content type

Request Body

JSON, form data

Creating a new REST API endpoint
Creating a new REST API endpoint

Editing an Endpoint

Select any endpoint and click Edit to modify its configuration. Update parameters, headers, or the request body to adjust how MockQL handles the request.

Editing an existing endpoint's configuration
Editing an existing endpoint's configuration

Viewing Endpoint Details

Click on an endpoint to see its detailed configuration, including request parameters, headers, and response history. This expanded view helps you understand exactly how the endpoint is configured.

Expanded view showing detailed endpoint information
Expanded view showing detailed endpoint information

Custom Response Handling

Configure custom responses to simulate different scenarios. You can create success and error responses to test how your application handles various API conditions.

Setting up a custom success response
Setting up a custom success response
Configuring an error response scenario
Configuring an error response scenario

Testing API Requests

Send test requests directly from the dashboard to verify your endpoint configuration. This allows you to see the actual response before integrating with your application.

Testing an endpoint to see the response
Testing an endpoint to see the response

External Tool Integration

MockQL works with external tools like Postman. Send requests through your favorite API client while still benefiting from MockQL's interception and mocking capabilities.

Setting up a Postman request with MockQL
Setting up a Postman request with MockQL
MockQL response shown in Postman
MockQL response shown in Postman

Response Logging

Track response statuses and logs for debugging purposes. The dashboard shows status codes and response data for all intercepted requests to help troubleshoot issues.

Status code tracking and response logs
Status code tracking and response logs

Key Benefits

MockQL's request interception dashboard helps you create, modify, and test API requests with minimal effort. It provides real-time logs and custom response handling.

Request Control

Define exactly how requests should be intercepted and modified

Response Customization

Simulate different API responses without changing backend code

Comprehensive Logging

Track all API interactions for debugging and testing