insomnia-mockbin icon indicating copy to clipboard operation
insomnia-mockbin copied to clipboard

Hostname specific rules

Open henadzit opened this issue 9 years ago • 1 comments

Hi,

It would be nice to have bins based on hostname and URL. For instance, I have web service myws.com which has method echo. I also have a client which uses the service. The client is configured with hostname of the service.

As part of my integration tests I would like to set ONLY hostname on the client and be able to use mockbin to mock the answers.

integ-test-1.mockbin.com:echo => 200, integ-test-2.mockbin.com:echo => 500

This will allow developers to use mockbin with minimal changes of their code.

Henadzi

henadzit avatar Apr 08 '15 00:04 henadzit

interesting premise, certainly can see the value there! will add to backlog :+1:

ahmadnassri avatar Apr 08 '15 00:04 ahmadnassri