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

Headers Not Getting Sent Along with Request! #871

Open
sindhujit1 opened this issue Oct 18, 2023 · 0 comments
Open

Headers Not Getting Sent Along with Request! #871

sindhujit1 opened this issue Oct 18, 2023 · 0 comments

Comments

@sindhujit1
Copy link

I am trying to use drf-yasg so that we can have an UI for our customers. I am passing headers with my API , however it is not getting passed to the backend.

image

Code:

openapi.Parameter(name='tenantUseCase',in_="headers",
description="tenantUseCase parameter (optional field)", type="string"),
openapi.Parameter(name='serverSubnet',in_="headers",
description="serverSubnet parameter (optional field)", type="string"),
openapi.Parameter(name='lbpair',in_="headers",
description="lbpair parameter (optional field)", type="string"),
openapi.Parameter(name='afinitiFlag',in_="headers",
description="afinitiFlag parameter (optional field)", type="string")],

Any help is appreciated!

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

No branches or pull requests

1 participant