You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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}",
}
}
}
The text was updated successfully, but these errors were encountered:
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...
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}",
}
}
}
The text was updated successfully, but these errors were encountered: