anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Change Collections in app

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

anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Change Collections in app

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Change Collections in app

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...

Return to “Issues”