Thank you Francesco, it works!! Why the REST method I use to search users, works well with previuos fiql expression ?
Antonio <http://localhost:8082/syncope/rest/users/search?_s=username==user_test> 2016-07-20 13:05 GMT+02:00 Francesco Chicchiriccò <[email protected]>: > On 20/07/2016 11:16, Antonio Ciancio wrote: > >> Hi, >> >> I'm using syncope 1.2.7 with apache tomcat 7.0.70. >> >> I had a problem with the REST method wich searches for a role. >> >> When i perform this method, >> http://localhost:8082/syncope/rest/roles/search?_s=name==role_test, I >> get "status code 400, bad request" answer. >> >> I cannot explain this strange fact because, when I perform the same >> request for a user >> (http://localhost:8082/syncope/rest/users/search?_s=username==user_test), >> I receive a correct response. >> > > Please use the "fiql" query param as defined by the REST reference, hence > > http://localhost:8082/syncope/rest/roles/search?fiql=name==role_test > > http://localhost:8082/syncope/rest/users/search?fiql=username==user_test > > Regards. > > -- > Francesco Chicchiriccò > > Tirasa - Open Source Excellence > http://www.tirasa.net/ > > Involved at The Apache Software Foundation: > member, Syncope PMC chair, Cocoon PMC, Olingo PMC, > CXF Committer, OpenJPA Committer, PonyMail PPMC > http://home.apache.org/~ilgrosso/ > >
