Live data from Hacker News

Show HN: Simple tool to generate mock APIs for testing

endpts.io

11–14 of 14 posts

Re: Show HN: Simple tool to generate mock APIs for testing

#12
post #6
post #5

Earlier quoted context omitted.

I suppose OP is referring to a bug where you are stuck at the home page (i.e., the initial state) after you clicked around a few times. So just going to your page and then navigating back right away works, but once you start changing settings, it wouldn’t let you go back past the initial state. At least it’s that way for me in Chrome.

Gotcha. The “clicking around” causes state changes like adding a field which is stored in the URL query parameters. Initially this was a design decision to make it easy to share the URL of the Mock API you built with other developers. However, I can see this is breaking user expectations - I’ll work on getting that changed so it’s more in line with what users expect. I appreciate the feedback because initially that f…

Maybe only generate a new url when they ctrl + s or hit a save button? This would be more like what you want? I think CodePen does this idr. Or keep a revision list in localstorage with all urls that would have been generated.

Re: Show HN: Simple tool to generate mock APIs for testing

#13
post #6

Earlier quoted context omitted.

Gotcha. The “clicking around” causes state changes like adding a field which is stored in the URL query parameters. Initially this was a design decision to make it easy to share the URL of the Mock API you built with other developers. However, I can see this is breaking user expectations - I’ll work on getting that changed so it’s more in line with what users expect. I appreciate the feedback because initially that f…

Maybe only generate a new url when they ctrl + s or hit a save button? This would be more like what you want? I think CodePen does this idr. Or keep a revision list in localstorage with all urls that would have been generated.

I think local storage and keyboard shortcuts might be a good alternative - thanks for the suggestion :)
Post reply on HN