Page 1 of 1

where clause with pointers columns via postman

Posted: Mon Apr 28, 2014 4:57 pm
by Shawn Johnson

I am having some issues getting where clauses to work via postman.

i am trying to send a get request to my collection of messages to retrieve all entries where = receiver id

i can't seem to format my request correctly

I have tried a few different ways

  1. where {"receiver": "535a7e77e4b07b9b72c55ea3"}'
    Image

  2. where{"receiver": {"collName": "users","id": "535a7e77e4b07b9b72c55ea3"}}
    Image

    I was able to get the curl request to work

    curl https://api.appery.io/rest/1/db/colle... -X GET -H "X-Appery-Database-Id: 5333288fe4b0fefcead6186e" -G --data-urlencode 'where={"receiver": {"collName": "users","id": "535a7e77e4b07b9b72c55ea3"}}'

    but the request via postman does not work


where clause with pointers columns via postman

Posted: Mon Apr 28, 2014 6:56 pm
by Shawn Johnson

I have resolved the issue, the request needs to be encoding and postman is not encoding it


where clause with pointers columns via postman

Posted: Mon Apr 28, 2014 7:11 pm
by Maryna Brodina

Hello!

Thank you for update!