Live data from Hacker News

Show HN: StubOnWeb – Stub HTTP server to test API integrations

stubonweb.herokuapp.com

1–10 of 14 posts

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#2
This is super cool! I'm going to start using this -- your project looks great too (thanks for making it open source!).

You should totally get a real domain for this, as well as some SSL certs to protect info flying over the wire.

If you want some sponsorship, hit me up, we might be able to work something out! randall@stormpath.com

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#4
post #3

Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?

I assume it's meant to be there for those who don't have a nifty http mocking library.

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#6
post #3

Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?

I use a similar system when building mobile app features.

Sometimes (almost always) an app feature is developed parallel to the API service.

It's useful to return a mock response so you can build the entire feature including networking. This way you don't need to wait for the server side component to finish.

A temp server takes time to set up and maintain. It's like any tool. Why use Dropbox if you can just save your file to a usb drive and carry it around everywhere?

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#7
post #2

This is super cool! I'm going to start using this -- your project looks great too (thanks for making it open source!). You should totally get a real domain for this, as well as some SSL certs to protect info flying over the wire. If you want some sponsorship, hit me up, we might be able to work something out! randall@stormpath.com

Thanks for your feedback. You can access it via SSL as well https://stubonweb.herokuapp.com/

It is currently running on heroku and mongolabs free tier. I'm glad to see more people find it usefull. I'll work on getting a domain and better server. I'll get in touch with you in case I need help. Thanks

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#8
post #3

Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?

This was created for manual testing of multiple scenarios while integrating with external APIs. We wanted something simple hosted, we didn't want this to be deployed multiple environments with config files or one environment where people might unintentionally overwrite or conflict with other's files. Creating stubs via web was easier was developers, QA's and SMEs testing the product.

Though you could use this for automated tests, I request you to wait till I get a better server with higher availability. For automated integration tests there other great stub servers in different languages.

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#9
post #6
post #3

Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?

I use a similar system when building mobile app features. Sometimes (almost always) an app feature is developed parallel to the API service. It's useful to return a mock response so you can build the entire feature including networking. This way you don't need to wait for the server side component to finish. A temp server takes time to set up and maintain. It's like any tool. Why use Dropbox if you can just save your…

Yup. We are building a product with micro services architecture, more often we finalise the API contract with other service teams and develop our service against stubbed response till the other teams complete their development

Re: Show HN: StubOnWeb – Stub HTTP server to test API integrations

#10
post #3

Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?

I assume it's meant to be there for those who don't have a nifty http mocking library.

Yup. Specially for people who can't or don't want to run their own stub servers
Post reply on HN