p-meier / hapi-api-version

An API versioning plugin for hapi.
Apache License 2.0
74 stars 26 forks source link

add a response header containing the API version #14

Closed cgood92 closed 7 years ago

cgood92 commented 7 years ago

Previously, there was no way to know what version of the API you were getting back. Now, you can get a response header back with the version number in it.

I find this very helpful. I am using your plugin right now, and love it.

Without this, you would have include the version # directly into the response JSON. That's fine, probably should be done that way, but this is another great way to check the version #.

p-meier commented 7 years ago

Thanks for your PR. I think this will be useful too.