Nisreen wrote
>  I mean call http://localhost:8080/syncope/rest/users for example to get
> all users and display them. is this possible or i must use the client
> library ?

The client library is provided for convenience with purpose of simplifying
the overall interaction; listing all users would be as simple as

SyncopeClient syncopeClient = new SyncopeClientFactoryBean().
        setAddress("http://localhost:9080/syncope/rest/";).
        create("admin", "password");
final int pageSize = 100;
final int count = service.list(1, 1).getTotalCount();
for (int page = 1; page <= (count / pageSize) + 1; page++) {
    for (UserTO user : service.list(page, pageSize, null,
false).getResult()) {
        // do something with user
    }
}

but nothing is stopping you from going down to HTTP layer and performing
something like as

GET http://localhost:9080/syncope/rest/users?page=1&size=100

using Basic-Authentication for providing admin credentials ("admin" /
"password" by default, as you can see above), then manually parse the
returned entities; naturally, this can be implemented in Java (without
depending on the client library) or other programming languages.

HTH
Regards.

--
View this message in context: 
http://syncope-user.1051894.n5.nabble.com/Could-not-process-connid-testconnectorserver-localhost-4554-tp5708230p5708242.html
Sent from the syncope-user mailing list archive at Nabble.com.

Reply via email to