5 ms·
Mockbin: generate custom endpoints to test, mock, and track HTTP requests
- sinzone 12y agoHi all - happy to get feedback. Also, someone added Mockbin on Docker: https://registry.hub.docker.com/u/tomdesinto/mockbin/ https://registry.hub.docker.com/u/tomdesinto/mockbin/
- voltagex_ 12y agoGetting a strange SSL error "SSL connection failed" on your apiembed.com iframe
- codeinchaos 12y agocannot seem to replicate ... we're behind Cloudflare, so you could be seeing an older version of the page, we had the SSL issue earlier and fixed it.
- voltagex_ 12y agoIt's a broken proxy between me and your site. Sorry!
- voltagex_ 12y agoAny plans to add websocket support?
- codeinchaos 12y agoyes! already brainstorming roadmap ideas: https://github.com/Mashape/mockbin/issues https://github.com/Mashape/mockbin/issues
- voltagex_ 12y agoI can see this is a cool tool but does anyone have any real world examples of how this would be used?
- deleted 12y ago[deleted]
- adamnemecek 12y agoIf you are developing an SPA and want to do front end first.
- RALaBarge 12y agoI use something like this to test webhooks and demonstrate that the service behind it is working.
- codeinchaos 12y agoa simple example is when developing against a third party api, and want to validate the behavior of your code and see what the HTTP request looks like, swap the API endpoints with mockbin urls and check, even mock the response with a Bin and build your client "offline" without hitting API throttling rate limits or exceeding your quotas for paid APIs, and much more :)
- sinzone 12y agohi - we have written a blog post on why/how we use this internally: http://blog.mashape.com/welcoming-mockbin-to-the-mashape-family/ http://blog.mashape.com/welcoming-mockbin-to-the-mashape-fam...
- doomspork 12y agoI've found these tools particularly useful if you've got your team divided up into frontend vs backend/platform. We would discuss and mock up the endpoint to unblock the API consumers while the actual service is built.
- WaxProlix 12y agoThat's a ton of use cases!
- doomspork 12y agoThis is really neat. We used Apiary at my last company to document our APIs and the added benefit is that it did just this, generated and tracked a mock endpoint. Really cool stuff.
- sinzone 12y agoThanks. Let us know if you need some particular additional feature.
- fideloper 12y agoAnyone else get their well-timed email with a link to the "/newest" page for this submission? Interesting strategy :D
- fideloper 12y agoI guess this can be seen as negative, I was curious if this was something y'all see a lot. Opinions?
- voltagex_ 12y agoA simpler alternative is http://httpbin.org http://httpbin.org (but the more the merrier!)
- codeinchaos 12y agonot quite the same, this is for creating custom mocked endpoints, while httpbin is pre-defined utility endpoints
- WaxProlix 12y agoNow what we REALLY need is the ability to mock SOAP endpoints. Semi-relatedly: I've never seen YAML over the web before, mostly just in config files and such. Is that common? Are there any examples of use out there?
- codeinchaos 12y agoI'm adding SOAP to the backlog: https://github.com/Mashape/mockbin/issues/12 https://github.com/Mashape/mockbin/issues/12 as for YAML, I think its best for human readability, rather than actual usage in libraries.
- earless1 12y agoDoes this tool also have the ability to record responses from API endpoints for future use?, or do I have to already have the response object available?
- codeinchaos 12y agoit does not, plenty of other tools to capture HAR response objects: http://ahmadnassri.github.io/har-resources/ http://ahmadnassri.github.io/har-resources/
- earless1 12y agoThanks for the link
- seivan 12y agoWould be cool if this could generate into a framework to run the mock locally for tests. So you would run a local server instead of mocking the network calls and returning json on a method level, you would actual hit a server. Or is that bad? Curious to hear other takes on it. Either for testing an SDK or the network layer of app itself.
- codeinchaos 12y agowe're adding proxy functionality to it this week.