Page 1 of 1

LIST based off WHERE clause

Posted: Thu Oct 01, 2015 9:57 pm
by Ryan Keith

I have a REST GET call that returns all entries from my own REST service and populates a list with each item having 5 fields

What I want to do, is filter the list based off items that have their STATUS column = 2.

I'm trying to do it in the Before Send event using return {"STATUS":"2"}; in the query string in a variable called, 'where' that's mapped from a field called 'status' but I'm having no luck.

my GET service doesn't have a WHERE clause, it returns everything in the table, I figure I can filter on the app side somehow

what am I doing wrong?


LIST based off WHERE clause

Posted: Fri Oct 02, 2015 6:43 am
by Ryan Keith

bump


LIST based off WHERE clause

Posted: Fri Oct 02, 2015 9:33 am
by Serhii Kulibaba

Hello Ryan,

Do you use Appery.io DB? If so - please add request parameter "where" to your service


LIST based off WHERE clause

Posted: Fri Oct 02, 2015 3:59 pm
by Ryan Keith

NO, I wrote a .NET C# MVC Web API REST service that points to my MSSQL DB.


LIST based off WHERE clause

Posted: Tue Oct 06, 2015 7:53 pm
by Serhii Kulibaba

Please look this tutorial (paragraph 7): https://devcenter.appery.io/documenta...