osmose-model / osmose-web-api

Web service that generates Osmose configuration files from data sources like Fishbase and SeaLifeBase. Used by https://www.config.osmose-model.org .
MIT License
2 stars 2 forks source link

allow for generating a osmose configuration from pre-defined function groups #1

Closed jhpoelen closed 8 years ago

jhpoelen commented 8 years ago

Currently, a static zip file is provided by the configuration service with a valid osmose configuration.

We'd like to be able to generate a configuration by selecting specific predefined functional groups, using the existing static example as a standing point.

jhpoelen commented 8 years ago

I've added a first pass at generating a template configuration for provided templates groups.

OSMOSE template configuration can now be generated using the following url syntax: https://fbob.herokuapp.com/osmose_config.zip?groupName=[group1]&groupName=[group2]&groupName=[group3]&...

For example: https://fbob.herokuapp.com/osmose_config.zip?groupName=Scomberomorus_cavalla&groupName=Lutjanus_campechanus&groupName=Epinephelus_morio

generates a template configuration for three groups with names Scomberomorus_cavalla, Lutjanus_campechanus and Epinephelus_morio.

Please note that this functionality uses identical default configuration for all groups. #2 would introduce a way to populate specific configuration variables using trait sources such as sealifebase and fishbase.

jhpoelen commented 8 years ago

Has been implemented and reviewed. Closing issue.