Skip to content

Conversation

@ArkVex
Copy link

@ArkVex ArkVex commented Jan 14, 2026

Fixes #152

I have added the OCF logo to the Swagger UI docs.

Disabled the default FastAPI docs route.

Added a custom /swagger route that serves the static favicon.

Cleaned up invalid router configurations.
image

@ArkVex
Copy link
Author

ArkVex commented Jan 14, 2026

@peterdudfield plz review

@peterdudfield
Copy link
Contributor

I was hoping we can get an icon in the tab bar of the api, so up here
Screenshot 2026-01-14 at 11 32 04

@ArkVex
Copy link
Author

ArkVex commented Jan 14, 2026

@peterdudfield plz check the screenshot attached

@ArkVex
Copy link
Author

ArkVex commented Jan 14, 2026

image

@peterdudfield
Copy link
Contributor

This one doesnt have a swagger route, but it does have a favicorn, I wonder if you could see how it does that?

@ArkVex
Copy link
Author

ArkVex commented Jan 15, 2026

Sure @peterdudfield , I'll take a look. Was my previous implementation incorrect?

@ArkVex
Copy link
Author

ArkVex commented Jan 15, 2026

@peterdudfield I refactored the code to use the standard favicon.ico route as requested.

Note: This works for the browser tab generally, but the Swagger UI page specifically defaults back to the standard FastAPI (teal) logo because it overrides the browser default.

If we want the Quartz logo specifically on the /swagger page, I will need to revert to using the get_swagger_ui_html( swagger_favicon_url=...) method.

@ArkVex
Copy link
Author

ArkVex commented Jan 16, 2026

@peterdudfield plz have a look at this as well please

@peterdudfield
Copy link
Contributor

@peterdudfield plz have a look at this as well please

I cant see a push of code?

@ArkVex
Copy link
Author

ArkVex commented Jan 16, 2026

I didn't push any code because of the reason mentioned above the logo is not visible on the tab

@peterdudfield
Copy link
Contributor

I didn't push any code because of the reason mentioned above the logo is not visible on the tab

Oh, yea, im happy with swagger not showing the logo, did you get it working on the other pages? like / or /docs?

@ArkVex
Copy link
Author

ArkVex commented Jan 16, 2026

Yes they are working fine

@ArkVex
Copy link
Author

ArkVex commented Jan 19, 2026

@peterdudfield i know you are a bit busy ,But can you plz review this pr?
I will look for a different issue ones this is done.

@peterdudfield
Copy link
Contributor

Sorry, I think we should clsoe this PR now. I think the faviconr icon does appear when not looking at swagger pages, so I think this is needd anymore. Sorry about the confusion here

@ArkVex
Copy link
Author

ArkVex commented Jan 19, 2026

No problem! I agree since it works on the other pages, it's better to keep the code simple. I'll close this PR now.

@ArkVex ArkVex closed this Jan 19, 2026
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

Successfully merging this pull request may close these issues.

Add icon to quartz api

2 participants