Skip to content

Feature: host the asyncapi json on a seperate endpoint/route like FastAPI #2803

@hmvp

Description

@hmvp

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions