-
Hi, I have an application where I have one rest client that communicates with one service through a post method "call toggle". I currently have that rest client configured for one instance of that service: services.ExampleService/mp-rest/url="url" Client:
Injecting and calling the client:
I'd like to be able to communicate with multiple instances of the same service, calling this "call toggle" post method to multiple base urls. How do I configure multiple base URL's for this same service in the application config and choose which url to use when I call the client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
/cc @Sgitario (rest-client), @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
You would need to build the client programmatically injecting the
baseUri
from the application config. For example:application.properties
:creating the client programmatically
: