You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
When using a REST service from another project (shared rest implementation) it would be good to be able to set the URL for the service where it is used.
The choice the developer has today is to send the URL as a parameter like the example below which works fine but I would prefer to do it once. @get("{url}/{domain}/entity") @accept(MediaType.APPLICATION_JSON)
ResponseEntity getEntity(String url, String domain);
These are two examples on how I would like to do it:
Declaring URL when declaring service @restservice(@stringres(R.string.myurl))
RestService myRestService
adding it to service after it has been initialized
myRestService.setBaseUrl(theServiceUrl);