Closed ollz272 closed 1 year ago
Does this work for you: https://github.com/alexschimpf/fastapi-versionizer/pull/26 ?
@alexschimpf Perfect!!! Thank you 🙏🏻
Version 1.1.0 is now available with the callback feature. I'm going to consider this issue closed for now. Let me know if you find any issues.
Subject of the issue
In our application we want to be able to hide our docs through basic HTTP auth. We currently do that like this, for example:
And password login is just a HTTPBaiscCredentials thing. This works fine, but we want to move to versioned endpoint. It doesn't seem like we can customise this kinda behaviour. Maybe we could allow for a docs, redoc, and openapi kwargs to be passed into the initial function? Or even the functions themselves?
Your environment
Steps to reproduce
Tell us how to reproduce this issue
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead