Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing empty or null values in GET request of Rest Service

3200663Sep 17 2018 — edited Sep 24 2018

Hi I have created a query for my front end Search form which will work if no parameters is given it will load all data or if any of the parameter is given it will display based on that .

My query is below and it works fine

select * from XXVS_AR_INVOICE_SUM_FRM_VIEW where (((SOURCE=:id) OR ( :id IS NULL)) AND ((INV_NUM=:id1) OR ( :id1 IS NULL)) AND ((UPPER(CUST_NAME)=UPPER(:id2)) OR (:id2 IS NULL))AND ((ACCT_NUM=:id3) OR ( :id3 IS NULL)) AND ((INV_NUM=:id4) OR ( :id4 IS NULL)))

When i Create a Rest api using ords and define 5 parameters it is errored out to 400

My Rest service when no value is given to bind variables and clicking on test in set bind variables is directed to the http://1**.**.**:8080/apex/jetapps/admin/invpos/,,,,

pastedImage_2.png

pastedImage_3.png

Could anyone help on what i am missing here??

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2018
Added on Sep 17 2018
2 comments
10,629 views