-
Notifications
You must be signed in to change notification settings - Fork 30
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
Make /static/
directory available on Kubernetes for Swagger docs
#1236
Comments
#1205 (comment) shows a non-production way to make |
@psschwei have you decided which of the production methods to serve the If the issue is still up for grabs, I would like to give it a try :) |
@david-alber I've been working for another issue. Please go a head. Thanks! |
Given the short-term plan is to move our docs over to IQP in #1166 , I think we may want to get a little more clarity on that one (where docs will live, how they'll be served, etc.) before we spend too much time spinning up our own version of the docs For reference, here's the API docs for runtime: https://docs.quantum.ibm.com/api/runtime |
Maybe the Qiskit Runtime API swagger docs can serve as inspiration: |
We added Swagger documentation in #1205 .
The pages display fine locally (using docker compose or gunicorn directly), but when running in Kubernetes the page does not render properly as the swagger javascript files are not found (see #1205 (comment) and surround discussion for more details).
I think this is mainly an issue with how Django serves static files... short version is in Kubernetes the
static/
directory isn't being served, which means none of the javascript loads, which means no swagger UI.An appropriate solution would use one of the "production" methods in the above link to serve the
/static/
directory for our Django service.The text was updated successfully, but these errors were encountered: