SeaQL / seaography

🧭 GraphQL framework for SeaORM
Apache License 2.0
362 stars 31 forks source link

Generate code for any web API supports async-graphql #35

Open billy1624 opened 1 year ago

billy1624 commented 1 year ago

It's alright to generate code for Poem web API as a proof-of-concept. But the code generator should be structure in a way that's easy to generate code for various web API listed below:

I think we don't need to support all at this stage. Just pick 2 would be enough.

oscartbeaumont commented 1 year ago

I just open-sourced httpz which could potentially help you with this issue. It is designed to make it so you can code your HTTP handler once and support all Rust webservers and serverless platforms. It's very early in development (currently only supporting Axum) but I am in the process of adopting it for rspc so I am going to be building it our over the next little bit.

It could be mutually beneficial to work together on it, if it meets your requirements for Seaography. Feel free to get in contact if you want to chat more about it.

tyt2y3 commented 1 year ago

It's certainly a cool project!

satvikpendem commented 1 year ago

I agree, I'm using actix currently so having a separate webserver in poem doesn't make sense, or I'd have the change the generated poem code into actix which is easy enough now but I imagine could get unwieldly as Seaography progresses.

karatakis commented 1 year ago

Implemented so far

The remaining generators are