-
Notifications
You must be signed in to change notification settings - Fork 168
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
Feature Request: Customize FastAPI Metadata #270
Comments
Hi @bhimrazy I can take this up |
Hi @ankitsharma07, Thanks for your interest! |
This is something that our team would find useful as well. Is this still being prioritized? @aniketmaurya @lantiga |
hi @vrdn-23, could you elaborate the use case if possible?
|
I think the biggest plus point would be the ability to turn off the documentation url for an application that we are providing as a REST API. We typically have our own generated API docs that are not running on the same server as the application and having an endpoint exposed that we have not explicitly allowed and have no control to turn off, is often flagged as a security issue (related to information disclosure).
Nope. Not currently. I do believe however this is a simple enough change that shouldn't add overhead complexity but at the same time provide small wins for people who need this level of configurability. |
Feature Request: Customize FastAPI Metadata
Description
Add a way to change FastAPI metadata (like title, description, license info, contact details, etc) and control the visibility of documentation URLs through the
app_config
parameter inLitServer
.Motivation
It would be helpful to easily customize API documentation details and hide docs URLs if needed, to keep things private or more tailored to specific needs.
Proposal
Update
LitServer
to accept anapp_config
dictionary for metadata settings:In
server.py
, apply these settings to FastAPI:Alternatives
Additional Context
The text was updated successfully, but these errors were encountered: