Page 1 of 1

Change Collections in app

Posted: Sat Jul 19, 2014 4:32 am
by anon

Lets say I have 50 different collections, one for each state of the US. If a user signs up with my application saying that they belong to a state, is there a way to dynamically change all of the services in the application to point to the corresponding collection? I don't want to have to make 50 different RESTful services..... Any suggestions?

Its like I need to change the URL of the service on the fly:
{database_url}/collections/California_Listings
{database_url}/collections/Nevada_Listings
....
{database_url}/collections/myVariable


Change Collections in app

Posted: Sat Jul 19, 2014 4:33 am
by anon

Is there a URL attribute that I can add to the request parameters in the service?


Change Collections in app

Posted: Sat Jul 19, 2014 5:56 am
by Illya Stepanov

Hello Anon,

It's better to use such functionality not on the client side and use server side for this.
Please look here, it will give you a general idea of ​​how to use it in Appery.io:
:: http://devcenter.appery.io/documentat...