Page 1 of 1

REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Thu Feb 05, 2015 3:08 am
by Poll David

https://maps.googleapis.com/maps/api/...

I have here a Google Place NearbySearch url in my REST Service

I am trying to input the NAME request parameter as blank but I am getting this error..

Image

but when you try the request on browser,

https://maps.googleapis.com/maps/api/...

It's working fine even though the value of name is blank. Please help

the NAME can be blank. But the rest service requires a value.


REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Thu Feb 05, 2015 5:43 am
by Yurii Orishchuk

Hi Poll,

It seems you use {keyw} in the URL.

If so you will have such error in the service test.

But you will not have this error in real app.

Please test in the app.

Regards.


REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Thu Feb 05, 2015 9:28 am
by Poll David

I am testing the app on browser and I am getting this error..

Image

and upon clicking the failed to load resource error, i have this

code{"code":"PTCT010","description":"Mandatory parameter 'appery-rest' is missing"}/code

it seems that if we use {} on parameter, it should always be filled


REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Fri Feb 06, 2015 1:07 am
by Yurii Orishchuk

Hi Poll,

Please give us your app public link and describe steps to reproduce this problem.

Thanks.


REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Fri Feb 06, 2015 1:12 am
by Poll David

Hi Yurii, can I have a separate question? It's quite urgent

it's from here.

https://getsatisfaction.com/apperyio/...

I have 2 localstorage variables named establishment_arr and result_arr (they are both array i think that has JSON content.)

"I have a database collection named ESTABLISHMENTS. inside it are the columns

place_id
visits
lat
lng
vicinity
type

i already parsed this content collection into the establishment_arr. i need to match the place_id values inside the establishment_arr if they have a match on the result_arr JSON.

rephrase:

I just need to lookup or search inside the parsed JSON if any PLACE_ID value from the collection exist inside the JSON string.

if place_id exist in the JSON string, i will place the lat lng of that place_id on the map

hope it makes sense. I really need help"

hope you can help.


REST Service Parameter (Dynamic Url) make request parameter NOT MANDATORY/REQUIRED

Posted: Fri Feb 06, 2015 9:02 am
by Evgene Karachevtsev

Hello Poll,

Please find Yurii's reply there.