Dive straight into practical MockQL workflows and use cases
Jump into these frequent use cases to get productive quickly
This workflow shows how to proxy an existing API while adding a new endpoint that doesn't exist yet in your backend.
In your project settings, enable proxy mode and set your base URL as interspector URL in project Setting.
Base URL:
https://api.yourproduct.com
Click "Add Endpoint" and define a path that doesn't exist in your actual API.
Path:
/api/v1/comments
Method:
GET
Define the mock response for your new endpoint.
[ { "id": 1, "postId": 101, "user": "jane_doe", "comment": "This is a great feature!", "createdAt": "2023-07-15T14:22:30Z" }, { "id": 2, "postId": 101, "user": "john_smith", "comment": "I agree, very useful.", "createdAt": "2023-07-15T16:44:12Z" } ]
Point your application to the MockQL URL instead of your original API.
MockQL Proxy URL:
https://mockql.com/api/v1/endpoint/simulate/rest/project-id
Now your application can use:
Visual representation of the REST proxy workflow
Explore our comprehensive documentation to learn about all the capabilities of MockQL.