Hello,
I have question for you.
I prepared app on Java Spring which works with local orthanc server.
Now I have to get data using Orthanc Rest API from remote server which IP I have.
This server have username and password and I dont know what I have to add to my code to it works correctly.
Everything work correctly with my localhost orthanc server probably because I can run in without username and password.
On remote server I have to have password. So what I have to add?
My example code which get instances ids:
private static final String ORTHANC = "http://myIP:8042/";
public List<String> getInstancesId() {
RestTemplate restTemplate = new RestTemplate();
String url = ORTHANC + "instances/";
ResponseEntity<Collection> serverResponse = restTemplate.getForEntity(url, Collection.class);
return (List<String>) serverResponse.getBody();
}