lerenn / asyncapi-codegen

An AsyncAPI Golang Code generator that generates all Go code from the broker to the application/user. Just plug your application to your favorite message broker!
Apache License 2.0
91 stars 23 forks source link

Http Extension #225

Closed gedw99 closed 4 months ago

gedw99 commented 4 months ago

I think it would be valuable to add HTTP.

https://github.com/ripienaar/nats-roundtripper does exactly this and can be a reference if we like it.

My use case is that I use nats and asyncApi for my projects because it makes it easy to build reusable modules that can string together as I please. But I also need to have external access from web clients over http, and so it would be awesome if I can generate that code and use it as I please.

up o now I have been cross compiling the golang code to WASM and using it in a browser. That is not viable though is you want a fast start up time.

Is anyone else interested in these types of extensions ?

I am not sure the best way to handle Auth with this. Nats does have the ability to integrate with JWT etc. it might not be for everyone though.

gedw99 commented 4 months ago

It looks like this repo DOES support openAPI too, so I guess this Issue is moot..

Please correct me if wrong.