B
B
Bob899912021-08-02 08:39:47
API
Bob89991, 2021-08-02 08:39:47

How to generate interactive OpenAPI documentation?

There is a .yaml file describing the API, how to get interactive html from it?
You need something like this:
6107845b5be6d206001702.png

From the site https://app.swaggerhub.com/ you can only export ugly looking html, but you need the look exactly like in the example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2021-08-02
@Nipheris

Such a thing can often be set up on different technology stacks using some kind of middleware, for example, in conjunction with ASP.NET Core, Swashbuckle does a good job :

app.UseSwaggerUI(c =>
{
    c.SwaggerEndpoint("v1/swagger.json", "My API V1");
});

Well, if you only need to format your yaml description - well, then the task comes down to taming Swagger UI .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question