rest api extension

Using the REST API Extension and getting "component class is null" on clean install of 2021.[12]

Going through the tutorial to deploy a REST API extension:

https://documentation.bonitasoft.com/bonita/2021.1/rest-api-extensions

On completion, calling the service had no data in the response. Looking to the logs, found the following:

INFO (http-nio-8080-exec-1) org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] RestletServlet: [Restlet] ServerServlet: component class is null

Found an already existing question:

Execute Rest API Extension with user without Administrator profile

Hi,

I have created a Rest API Extension in bonita 7.5.4. When I logged with a user with Administrator Profile and I called the Rest API through its url in the browser it works fine, but when I'm logged with a user with "User" profile and I try to call the API with its URL, i got (403 forbidden).

What can I do to solve this?

Thanks.

Jorge

REST API QUERY WITH LIKE OPERATOR AND a percent sign (%)

Hi all,

I'm trying to do a query using the like operator with % ( a percent sign (%) that matches any sequence of zero or more characters ), example SELECT * FROM clients WHERE country = 'France' AND city LIKE '% a%'

In queries.properties I've tried:
GetClientsByLike = SELECT * FROM client WHERE country =: country AND city LIKE%: city% but did not work,
also tried ... LIKE :city and pass % sign via parameter, but also did not work.

thanks
Paulo

Update BDM From API Rest Extension

Hello,

Do you know if there is a way to update Business Object from my BDM inside a Rest API extension ?

If yes, where can i find exemples ?

Thanks,

Kilian

Notifications