lerenn/asyncapi-codegen

Http Extension

Closed this issue · 1 comments

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.

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

Please correct me if wrong.