You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case for me is to extend the response headers with a semver version notation of the public REST API in a header: API-Version. See a screenshot of FireFox F12-network here:
This is driven by the following piece of configuration in application.properties:
application.version=1.0.0
Which could build-time be populated with the maven coordinates.
To make this generic, one could think of the following addition:
sjaakd
changed the title
Add the possibillity to return custom http headers based on application.properties
Add the possibillity to return custom http response headers based on application.propertiesNov 19, 2021
quarkus.application.version: The version of the application. If not set, defaults to the version of the project (except for tests where it is not set at all).
Description
The use case for me is to extend the response headers with a semver version notation of the public REST API in a header:
API-Version
. See a screenshot of FireFox F12-network here:This is driven by the following piece of configuration in
application.properties
:Which could build-time be populated with the maven coordinates.
To make this generic, one could think of the following addition:
in a practical case such as this:
See also: #21457
Implementation ideas
I've used a
vertex.RouteFilter
to implement this:The text was updated successfully, but these errors were encountered: