How to test an API running on localhost from outside localhost?

Apibot
Apibot
Sep 17, 2017 · 4 min read

What is ngrok?

Run your web service

Application in development on http://0.0.0.0:3000
ngrok http <port number>
Tunnel Status                 online
Update update available (version 2.2.8, Ctrl-U to update)
Version 2.0.25/2.1.18
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://8ddae8ce.ngrok.io -> localhost:3000
Forwarding https://8ddae8ce.ngrok.io -> localhost:3000

The ngrok UI

Web Interface                 http://127.0.0.1:4040

Testing the API

Step #1: Creating a graph

Step #2: The Config

configuration node

Step #3: The HTTP request

Step #4: Running the graph

Ngrok console after execution

Conclusion

If you have questions or comments, please let us know.

Apibot

Written by

Apibot

Automate integration tests fast and easy. It will take you less time than reading these lines 😀

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade