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
According to documentation it's possible to pass a header parameter to a specific route by passing a validate function to route config object like this:
But this would add a header option to swagger ui only for the route "/generate" like this image:
I want to to add a common header option to all routes in swagger ui in my hapi server. Is it possible? Please note that I have already used the securityDefinitions to set a api_key. What I want is another common header values to swagger ui.
The text was updated successfully, but these errors were encountered:
Hi @sumitsaha . I'm not quite sure, but this sounds more like a hapi or hapi-swagger question rather than rest-hapi. Are you trying to do this with the routes generated by rest-hapi?
According to documentation it's possible to pass a header parameter to a specific route by passing a validate function to route config object like this:
But this would add a header option to swagger ui only for the route "/generate" like this image:
I want to to add a common header option to all routes in swagger ui in my hapi server. Is it possible? Please note that I have already used the securityDefinitions to set a api_key. What I want is another common header values to swagger ui.
The text was updated successfully, but these errors were encountered: