z0mt3c / hapi-swaggered-ui

An easy swagger-ui drop-in plugin for hapi (to be used with hapi-swaggered).
39 stars 31 forks source link

Split 'basePath' based on OpenAPI standards for reverse proxies #123

Open RedTn opened 7 years ago

RedTn commented 7 years ago

My god I'm submitting a naming issue and I can't even name my issue....

basePath works nicely as a reverse proxy config, but the naming is confusing because it conflicts with the OpenAPI standard https://swagger.io/docs/specification/2-0/api-host-and-base-path/ Can we either split up the documentation location to properties ['scheme', 'host', 'basePath', 'path'], or just rename 'basePath' to something else?