Hi, this code doesn’t make sense at all
# prefect-community
z
Hi, this code doesn’t make sense at all
of course it doesn’t work
z
app = create_app()
should get you there
We refactored the app to use a factory like that and the import got updated but the example did not
You can view the API documentation locally by running
prefect orion start
and visiting
localhost/api/docs
and we have all the API documentation hosted in the docs you’re currently viewing.
👍 2
z
Thanks!!!
z
Oh sorry it looks like it’s actually broken in the hosted documentation now, we’ll investigate that
👍 1
z
This is still not fixed
from prefect.orion.api.server import create_app
app = create_app()
openapi_doc = app.openapi()
unreadable but I guess it just json for machine
z
What’s still not fixed? The example?
It’s been fixed internally but is not published yet
z
OK, then it should be published.
k
It’s not practical to publish every change because we have to sync the docs with the codebase so we release as a version. If we released every change, you’d see a lot of documentation out of sync with the API