You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serving the OpenAPI schema from an API endpoint would make the most sense and would always be correct for the instance running. For local development you can just fetch the schema from production.
Yeah that's a good point, maybe it's better to serve it from an endpoint. I was thinking of cases where there the latest version of the backend has not yet been deployed to production but I guess those situations are pretty rare.
It would be nice to have an OpenAPI schema for the API, it would allow us to generate the types for the frontend automatically.
One possible library: https://github.com/juhaku/utoipa
Not sure what is the best way to distribute the schema, here are some ideas:
The text was updated successfully, but these errors were encountered: