I’m developing some integration software using a RESTful API in Java 8.
I’m awaiting some test equipment but, without it, I wanted to get started on mocking some of the simpler API calls using a Postman Mock Server.
I’ve had no issues getting the Mock Server and an example API call set up, and those are working fine either from Postman itself or from my web browser - giving the expected mocked response. However, my Java project is giving an UnknownHostException when it tries to connect to that Mock Server. I’ve double-checked the spelling of the Mock Server URI and it is definitely correct.
I’m guessing the exception is because my Java needs a proxy setting up via which it can reach the Mock Server in its Postman format.
Is that correct ?
If so, can someone just give me a few pointers as to the settings that need to go into the Postman Proxy config to achieve this ? Sorry, but I find the Postman Proxy help docs a little confusing!