Four Stars

Apache syncope Rest API in Talend

Hi
How to make a call to Syncope using REST API. I am trying to make a REST call using the url  But I am not able to get the response. 
Please help on this.
Regards
Vishnu
2 REPLIES
Employee

Re: Apache syncope Rest API in Talend

Hi,
You could use one of REST framework e.g. Apache CXF to make a call to Syncope using it's REST API.
For example with CXF WebClient:

WebClient client = WebClient.create("http://localhost:8080/syncope/cxf/", Collections.singletonList(new JacksonJsonProvider()));
String authorizationHeader = "Basic " + Base64Utility.encode((username + ":" + password).getBytes());
client.header("Authorization", authorizationHeader);
client = client.path("users").accept("application/json");
client.get(...);
Regards.
Employee

Re: Apache syncope Rest API in Talend

Another alternative is to use the Syncope client library:
http://syncope.apache.org/docs/reference-guide.html#client-library