Open spencewenski opened 1 week ago
And/or, can leptos be updated to generate an OpenApi schema?
TBD, how to support other frameworks besides leptos? Just with an openapi client?
First, the benefits of having open api support vs leptos’s server functions?
open api pros:
open api cons:
I wonder how hard it would be to generate an open api schema for leptos server functions? I think one issue is server functions would possibly tend to be pretty specific and not really well designed APIs. It could be helpful for development, though.
If the consumer is using a rust ui framework, eg leptos, we should make it easy to call the api. Do we require building an OpenApi client in this case? Seems a little weird tbh. Maybe we can generate leptos server fn wrappers? How to do that without creating duplicate api routes?