How to add custom Business logic for get request

Hi,

I want to add Custom Business logic for ‘GET’ request, can we use find event handler for the same ?

Thanks.
Santhosh P

Can any one help with this question as i am stuck in middle ?

“An event handler for GET request” does not quite make sense. Which GET request?

You need to understand that Backendless event handlers are added for Backendless APIs. Also, you can create custom event handlers.

Hi Mark,

I have below scenario

I have a survey feed in main feed table and once user submits it, another table called survey results get updates with a submitted flag set to “true”.

Now once the same user makes a call to the main feed table, i want to check the survey results table an dprovide Thanks response if it is submitted else the list of questions.

Hence i thought i can have a handler on “GET” request for main feed table.

Thanks and Regards,
Santhosh P

HI Mark,

Can you please look into the above question and help me out on how to achieve this.

Thanks,
Santhosh P

Can anyone help me here as i was stuck in middle ?

In Backendless you can add an event handler for a specific API request. “GET” is not an API request. “find”, “findByID”, "findFirst, etc. are API requests. Go through the following guide and do what it instructs to become familiar with Backendless Event handlers:

https://backendless.com/documentation/business-logic/java/bl_getting_started.htm