-
Notifications
You must be signed in to change notification settings - Fork 49
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
Introduce FastAPI #2745
base: main
Are you sure you want to change the base?
Introduce FastAPI #2745
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Build failed. ✔️ pre-commit SUCCESS in 1m 50s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start! I think going with /v1
etc. instead of /api/v1
is fine. Would API documentation go to /v1/docs
or /docs
?
# Swagger and ReDoc don't work without these | ||
"style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " | ||
"script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something we should track in a separate issue. If auth ever becomes something Packit implements this might then be a security threat - especially with JS scripts
Currently it goes under |
Ah okay. Yeah I'd say put it under the specific api version due to using versioning |
Build failed. ✔️ pre-commit SUCCESS in 1m 53s |
Introduce FastAPI running with Uvicorn (+Gunicorn in prod/stg), keep old Flask endpoints under /api hardcoded as WSGI. New endpoints will come under /v1, Swagger is at /docs and Redoc under /redoc.
We no longer run httpd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should land this on stg soon, because now our stg service instance is down.
Thanks!
recheck |
Build succeeded. ✔️ pre-commit SUCCESS in 1m 56s |
Merge after #2749 (needed for tests to pass)
Fixes #2715
To discuss:
TODO:
security_and_https_middleware
moreRELEASE NOTES BEGIN
N/A
RELEASE NOTES END