Lately I’ve been interacting a lot with REST APIs. I found that testing an API from within an application can sometimes cause some issues. For instance, when setting up a webhook notification instance using vROPS you only have a simple test button. But what if the application you want to access requires authentication and all you want to test is if you are able to access a URL via a HTTP proxy server?

If you have the option to open an SSH or console session to the server that hosts the application, you can probably set a http_proxy environment variable and use curl to test connectivity. But then there is still a chance your application handles connectivity in a slightly different way. To mitigate that risk and even save you the hassle of connecting via SSH let me present you with an even easier alternative; Beeceptor.

Beeceptor is a website where you can create a mock API endpoint. Simply enter an endpoint name and you can use this endpoint in your application of choice. Want to do an easy connectivity test? Simply do a GET or POST request and you can see the result in the browser where you created the endpoint.

But it doesn’t stop here. Even with their free tier you can create rules on how to respond to certain API calls. Check out their documentation and consider subscribing to one of their paid tiers if you see added value for your use cases.

Leave a Reply

Your email address will not be published. Required fields are marked *