Problem to access query with Rest Ful Api

Hi everyone.

I am having a problem to access findby methods defines into BDM, when I want to invoke in “Ui Designer”. If I define this variable with this external api source like this:
“…/API/bdm/businessData/com.puce.model.Empresa?q=find&p=0&c=20”
dont have any problem, but when I want to use find methods where I need to pass some varible like this:
“…/API/bdm/businessData/com.puce.model.Empresa?q=findByIdbonitagrupo&p=0&c=20&f=15” where f=15 exist into the database.

I don’t know if it is a sintax problem or another thing.

image

Best Regards
Gabriel M.

You need something like this:

/API/bdm/businessData/com.company.model.Employee?q=findEmployeeByFirstNameAndLastName&p=0&c=10&f=firstName=John&f=lastName=Doe

so in your example

…/API/bdm/businessData/com.puce.model.Empresa?q=findByIdbonitagrupo&p=0&c=20&f=15

change &f=15 to &f=iD=15

Where iD is the real name of the parameter…(what your name is)

See here:

http://documentation.bonitasoft.com/bdm-api-0

under businessDataQuery

regards
Seán

PS: If this reply answers your question, please mark a resolved.

Thanks a lot. Its work =D =D =D