warelab / gramene-search-client

Javascript client for searching Gramene's API
MIT License
0 stars 1 forks source link

Allow web service server to be specified at run time #29

Closed mycrobe closed 8 years ago

mycrobe commented 8 years ago

The web services server location is hardcoded in gramene-search-client as http://devdata.gramene.org/

By default, production builds should point to data.gramene.org and dev builds to devdata.gramene.org.

Determining server at runtime:

(This will be implemented in gramene-swagger-client in a sister issue).

  1. Look for an optional URL parameter server that specifies server name or IP address and port, e.g. http://search.gramene.org?server=localhost:10011/swagger would use the production search interface as served from search.gramene.org but it would connect to localhost:10011 for all data requests.
  2. Otherwise, use the value specified in global parameter gramene.defaultServer
  3. Otherwise, use hard-coded default value http://data.gramene.org/swagger.
mycrobe commented 8 years ago

Merged into dev. Will push out minor release because it breaks compatibility with old nodes.

mycrobe commented 8 years ago

fixed and stable in 2.6.3