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

Extra "/" is being added before all endpoints. #543

Open
drjkpalli opened this issue Jan 18, 2025 · 2 comments
Open

Extra "/" is being added before all endpoints. #543

drjkpalli opened this issue Jan 18, 2025 · 2 comments

Comments

@drjkpalli
Copy link

Followed the documentaion and using the html page method to display docs.
fast API runs on port 9000 on localhost.

the problem is the page is adding an extra forward slash / before every endpoint making the testing unusable.

the same endpoints display fine in all other api docs like scalar, swagger ui, etc...

Image

AS can be seen in the image, there is an extra forward slash / in the endpoint path while the backend endpoint looks like this in the backend :
@app.get("/", tags=["API Details"])
async def root():
return {
"message": "Welcome to Diagnosys API",
"endpoints": {
"diagnosis": "/diagnosis/{endpoint}",
"conditions": "/conditions/{endpoint}",
"template": "/template/{endpoint}",
"funding": "/funding/{endpoint}",
"auth": {
"google": "/auth/google/{endpoint}",
"microsoft": "/auth/microsoft/{endpoint}",
}
}
}

Copy link

linear bot commented Jan 18, 2025

@drjkpalli
Copy link
Author

Is this a bot responding to the issues ?? confused why there was an istant response from linear !

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

No branches or pull requests

1 participant