Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow common headers on Blueprint/MethodView #311

Open
Petr-Pan opened this issue Jan 3, 2022 · 0 comments
Open

Allow common headers on Blueprint/MethodView #311

Petr-Pan opened this issue Jan 3, 2022 · 0 comments

Comments

@Petr-Pan
Copy link

Petr-Pan commented Jan 3, 2022

Hi,

I'd like to propose an option to define header schemas on a Blueprint or at least MethodView level.

An example use case would be a context/correlation id - optional headers in the request, whose values can then be used for easier tracking/debugging purposes in logs.

Currently, if I'm not mistaken, to auto-document these, one has to decorate every single endpoint of the API, which is a bit cumbersome and error-prone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants