https://prefect.io logo
Title
z

Zheng Cheng

06/25/2022, 4:01 PM
Hi, this code doesn’t make sense at all
of course it doesn’t work
z

Zanie

06/25/2022, 4:22 PM
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

Zheng Cheng

06/25/2022, 4:27 PM
Thanks!!!
z

Zanie

06/25/2022, 5:43 PM
Oh sorry it looks like it’s actually broken in the hosted documentation now, we’ll investigate that
👍 1
z

Zheng Cheng

06/27/2022, 1:34 PM
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

Zanie

06/27/2022, 3:03 PM
What’s still not fixed? The example?
It’s been fixed internally but is not published yet
z

Zheng Cheng

06/27/2022, 3:18 PM
OK, then it should be published.
k

Kevin Kho

06/27/2022, 3:59 PM
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