Collect Redoc FastAPI from some instances on an one page

131 views Asked by At

Is there any convenient way to put Redoc together from some insurances running on several ports, for instance:

Each instance presents itself Fast API with certain endpoints.

I'd want to have the starting page where the all endpoints would be presented, let's say http://127.0.0.1:8004/redoc

1

There are 1 answers

2
Lorna Mitchell On

It could be done in your build pipeline, using the redocly join command (docs: https://redocly.com/docs/cli/commands/join/ and disclaimer: I work for Redocly). Grab each of the OpenAPI specifications, and put them into one combined file, would that do what you are looking for?