In this post, we will see how to use Row Finder in ADF BC REST services.
Open REST resource VO and create a View Criteria as shown below having 2 bind variables for Department name and Location ID.
Go to Row Finders section and create new one with searhByDeptName.
Here we can observe that above VC is selected by default. In Variables section as shown below, we can also set whether bind variable is allowed to be passed in REST resource URL along with Required settings.
Deploy the application and use any REST client to test GET method using the following urls. Observe the usage of row finder and bind variables.
Passing single bind variable:
http://localhost:7001/departmentApi/rest/r1/departments?finder=searchByDeptName;bindDeptName=A
Passing both bind variables:
Now mark bindLocId variable as required and try to test without using it in the URL and you will observe the error as shown below.