Mocky icon indicating copy to clipboard operation
Mocky copied to clipboard

Ability to change response after generating url

Open endeepak opened this issue 10 years ago • 8 comments
trafficstars

We are using mocky to test the integration of an external API. Currently to test multiple scenarios, we need to change url and restart our service.

It would be good if we are allowed to change the response for same url to avoid restarting our services.

endeepak avatar Oct 23 '15 03:10 endeepak

But you will need some authorization for changing your url, cuz anyone can do it without rights :)

fliptheweb avatar Nov 25 '16 11:11 fliptheweb

Yes, everyone will be able to change it. But URL is long enough and so is difficult to brute-force. Plus it may be done only for mocks, that were created with special flag allow_changing that will minimize unexpected changes.

nothingelsematters7 avatar Nov 25 '16 11:11 nothingelsematters7

@nothingelsematters7 nice idea with the flag!

fliptheweb avatar Nov 25 '16 11:11 fliptheweb

I will gladly accept community contributions on this topic.

julien-lafont avatar Oct 21 '17 21:10 julien-lafont

Sorry, I didn't have experience in scala to contribute. At that time, I was learning elixir and ended up writing https://stubonweb.herokuapp.com/ with this requirement and few more

endeepak avatar Oct 22 '17 02:10 endeepak

Hi Julien,

I want to be able to delete a link that I just created on Mocky.io for security reasons. Can I do so? Please reach out to me on [email protected]

Regards, Carol

carol-saldanha avatar May 31 '18 04:05 carol-saldanha

Agree this would be an incredibly useful enhancement. Its often the case that the client needs to be re-configured or re-started to talk to a different URL. If you could change the responses without changing the URL, then mocky would be a lot more usable. Agree also that you don't need security around this - the generated URLs are obscure enough that its unlikely someone will find them, and if you are that concerned about your data being accessed by others you shouldn't be using a free service like this.

NoahFace avatar Mar 31 '19 22:03 NoahFace

Is this being worked on still?

sloanhawthorne avatar Apr 12 '21 20:04 sloanhawthorne