koopjs / koop-output-geoservices

Deprecated
Other
6 stars 4 forks source link

Add "rest" routes #6

Closed rgwozdz closed 6 years ago

rgwozdz commented 6 years ago

Some ArcGIS clients require the inclusion of rest/services within the route path, otherwise they are rejected. Similarly, these clients may require a rest/info route.

This PR adds a duplicate set of service routes with a $namespace/rest/services/$providerParams prefix. A companion update to koop-core will include code to replace the $namespace and $providerParams with the provider-specific route fragments.

Additionally, a $namespace/rest/info route is added along with a target handler.

rgwozdz commented 6 years ago

Released koop-core 3.6.0 and added as a peer-dependency. Made additional changes in routes to reflect separate treatment of $namespace and $providerParams substitutions.