I tried to split a swagger document into different parts under the same version such that I can then acces them in endpoint, like this :
app.UseSwagger(s =>
{
s.SerializeAsV2 = true;
})
.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger-file1.json", "File1 API V1");
c.SwaggerEndpoint("/swagger/v1/swagger-file2.json", "File2 API V1");
c.SwaggerEndpoint("/swagger/v1/swagger-file3.json", "File3 API V1");
})
Unfortunately I cannot find a way to customize the swagger-file1.json part.
I tried to research everywhere but could not find anything that helped this particular problem
New contributor
Afahd ALI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.