top | item 15440964

Show HN: Mockoon – mock REST APIs in seconds

68 points| 255kb | 8 years ago |mockoon.com | reply

29 comments

order
[+] 255kb|8 years ago|reply
Hi! I created this new desktop app (made with Electron) to easily mock REST APIs locally. It's available for Windows / Linux / OSX and still in beta but with lots of features and a lot more to come. I developed it for my colleagues and me to help us easier the process of working on upcoming APIs still under development. Feel free to give it a try, any feedback is welcome :) Thanks!

To answer a common question: what differentiate Mockoon from Postman mocking option? It's easier to set up, 100% local (no remote deployment), and requires no account.

[+] vorotato|8 years ago|reply
Hey could you have the Telemetry be opt in or at the very least allow me to opt out?
[+] RubenSandwich|8 years ago|reply
Feature request: Now that you have mocked the RESTful API, it would be great to generate documentation for it.
[+] 255kb|8 years ago|reply
Thank you for the feedback. Nice idea, I will keep this in mind :)
[+] ko5ta|8 years ago|reply
Two features that come to mind:

Exporting to flat-file would allow mock environments to be versioned using a VCS.

Importing OpenAPI spec (swagger) files could simplify initial setup.

[+] 255kb|8 years ago|reply
Import/Export feature is definitely on the list. I need to investigate how to do it best. So any ideas like yours are welcome! :)
[+] ReedJessen|8 years ago|reply
I second this.

Also, exporting swagger as well as importing swagger may allow automating new version deployments on AWS API Gateway and the like.

[+] zakshay|8 years ago|reply
Hi! I have been looking for something, its awesome!

Apart the main use-case, I'm also trying to figure out how to fit it for this use-case – For a specific URL I would like to capture all requests made from the frontend app (JS) in production to the backend, and then replay it for a local version of the frontend.

[+] ReedJessen|8 years ago|reply
This is really cool. It's like the counterpart to something like Postman or Insomnia.
[+] endroits1|8 years ago|reply
This looks really beautiful. What use cases would this be helpful for?
[+] vortico|8 years ago|reply
This project is really cool for me. Here's my personal use case that it would solve.

I always begin every Node/Express server project with a unit and integration test file using the request-sync library to make a sequence of synchronous requests and assert everything about each request in each step before continuing. But I can never run those scripts to completion until my server is written, which is much more difficult to test than my test script. (Yes, I'm looking for a meta-test of my test script.) Questions like "am I checking the data in the correct way" and "are all my status code checks the correct number" would be answered if I could make a fake server first, then a unit test, then the real server.

It's easier to make example data than to write a script to check everything in generality if I don't know exactly how the server should behave.

[+] 255kb|8 years ago|reply
Thank you! I have a use case at work where I work exclusively on a frontend application. And sometimes I need to mock new API routes not developed yet by the backend team. I could hardcode some things directly in the application but mocking with an external tool is more convenient.
[+] notimewaste|8 years ago|reply
nice ,is there any documentation for this
[+] TheBiv|8 years ago|reply
Branding suggestion: I would change the name/logo. Not to be PC, but because the name/logo gave me an immediate cringe and I would have a hard time telling my friends about this service by name. I know it's unintentional by you. Please take a look at the 2nd definition: http://www.dictionary.com/browse/coon
[+] watty|8 years ago|reply
I disagree. Only after I clicked on your link did it occur to me what you were trying to say.

I think it's a stretch. If the word is that taboo to you then what do you call those striped tail critters who get in the garbage? Rac--n?

[+] jessemillar|8 years ago|reply
I respectfully disagree. A secondary definition that is offensive to some and entirely unknown by others should not dictate a name change.
[+] danielvaughn|8 years ago|reply
I couldn't even imagine how you feel about vinegar.
[+] 255kb|8 years ago|reply
Omg! English is not my main language and I did not know about this second meaning :( This reminds me that most of the time when I try to find a name for something I go to urban dictionary, just in case :D I forgot to check this time...

Anyway, I do not plan to change the name for now. If it becomes obvious that it is offensive for some I will definitely consider this.

[+] vorotato|8 years ago|reply
Raccoon and "coon" are uh extremely different things. This is obviously evoking the animal and not the racial epithet. The problem is not that raccoons exist, the problem is that humans were likened to wild animals. No humans are depicted here as animals. There is nothing wrong with raccoons.
[+] vortico|8 years ago|reply
You should tell Chris Sawyer about Rollercoaster Tycoon!