Closed deepakunni3 closed 5 years ago
@cmungall @lpalbou I have added configuration for all remaining routes.
If this PR looks good then feel free to merge. After this @lpalbou can trim this config.yaml to set up a GO BioLink API.
👍
We might consider separating a route config and server config, for example I just ran into an issue where we override the default server conf on api-dev, but will also now need to occasionally sync back with master to get new/updated routes.
This approach is more
config.yaml
driven.The
config.yaml
allows for a more fine-grained configuration where you define what route maps to which resource. Having all the routing configuration in one place makes it easier than editing all individual endpoints.If there is an implementation specific resource then all one has to do is change the route to resource mapping in
config.yaml
and it should be registered during app initialization.To remove a route from showing up, simply omit it from the config.
I would prefer this approach over https://github.com/biolink/biolink-api/pull/236
If this looks good then I can go ahead and include all the other routes (currently the
config.yaml
has routes only frombioentity
namespace).