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.
0 Comments