How to quickly create a mock server without installation

Konstantin Dokuchaev
Konstantin Dokuchaev
How to quickly create a mock server without installation

Coparrot - a web server that returns the required data for your requests.

I work as a back-end tester. Sometimes, to check for some improvement, you need to hack the response of the service.

In this case, testing utilities help a lot, or the developers themselves raise a mock server. However, in this post, I want to talk about Coparrot - a web server that returns the required data for your requests. Which allows you to lock various APIs without using third-party tools or resources at all.

How it works

To configure Coparrot to return a specific response, just send it a Get request https://use.coparrot.dev/api/whatever/path?__cp_response=

Where to specify the path that you plan to use, and pass the response itself in the cp_response parameter.

For example, it https://use.coparrot.dev/api/themarfa?__cp_response=hello%20worldwill return Hello, World.

Similarly, the service allows you to work with other types of requests. For example, SOAP:

You can get acquainted with the types of passed parameters on a separate Coparrot page. For example, you can change the response type, specify a delay, status, redirects, and much more. There is support for HTTP headers.

Price

The service is free to use, but the number of requests will be limited. In general, this will not interfere with testing in most situations.

The minimum rate starts at $5 for 100 requests per month.



Great! Next, complete checkout for full access to All-in-One Person
Welcome back! You've successfully signed in
You've successfully subscribed to All-in-One Person
Success! Your account is fully activated, you now have access to all content
Success! Your billing info has been updated
Your billing was not updated