Hello @softprops,
Thanks for pushing this crate out, it was a breeze to get started with Rust+API Gateway+Http lambdas thanks to you 👍
Now, before I dive into defining my endpoints right into main.rs, abstact it away, and iterate as usual, I would like to have some code scaffolding first. I would like to first know if you have some insight into putting OpenAPI (Swagger) specs to work with this serverless crate and/or lando?
My original idea was to generate code given a particular OpenAPI spec, but the resulting code is quite... overwhelming and boilerplate-y as a starting point, imho:
https://github.com/brainstorm/htsget-rust
Instead, I'm trying to start small while having the API Gateway code scaffold and Lambda handler(s) stubs in place, right now just your README.md scaffold really:
https://github.com/brainstorm/htsget-aws
Putting aside the whole code generation stuff for OpenAPI, how would you tackle this for starters?
For instance, would you include Rust's Rocket crate to start? Or perhaps just go for plain tokio+http?
Would you define the endpoints in serverless.yml, create a single lambda per endpoint and go from there or another strategy?
Just getting my feet wet with all this and wanted to have some good starting pointers from the pros ;)
/cc @chris-zen @delagoya
Hello @softprops,
Thanks for pushing this crate out, it was a breeze to get started with Rust+API Gateway+Http lambdas thanks to you 👍
Now, before I dive into defining my endpoints right into
main.rs, abstact it away, and iterate as usual, I would like to have some code scaffolding first. I would like to first know if you have some insight into putting OpenAPI (Swagger) specs to work with this serverless crate and/or lando?My original idea was to generate code given a particular OpenAPI spec, but the resulting code is quite... overwhelming and boilerplate-y as a starting point, imho:
https://github.com/brainstorm/htsget-rust
Instead, I'm trying to start small while having the API Gateway code scaffold and Lambda handler(s) stubs in place, right now just your README.md scaffold really:
https://github.com/brainstorm/htsget-aws
Putting aside the whole code generation stuff for OpenAPI, how would you tackle this for starters?
For instance, would you include Rust's Rocket crate to start? Or perhaps just go for plain tokio+http?
Would you define the endpoints in
serverless.yml, create a single lambda per endpoint and go from there or another strategy?Just getting my feet wet with all this and wanted to have some good starting pointers from the pros ;)
/cc @chris-zen @delagoya