-
Notifications
You must be signed in to change notification settings - Fork 333
Feature: host the asyncapi json on a seperate endpoint/route like FastAPI #2803
Description
Is your feature request related to a problem? Please describe.
We use backstage to collect project information and techdocs. Backstage has the option to render openapi and asyncapi docs from files. We do this by refering to the hosted version of openapi.json on fastapi projects and we like to do the same for faststream projects.
Describe the solution you'd like
Currently the hosted apidocs consist of a singe page which includes in the javascript the asyncapi spec. We want this on a separate router so we can directly reference it.
Feature code example
I started a branch https://github.com/hmvp/faststream/tree/better_asyncapi ran into some tests that I did not understand and I was not sure if the approach was valid...
Describe alternatives you've considered
Generating the json with the commandline client introduces extra complexities...