Open stantoxt opened 7 years ago
I don't think there is any built in support for this. You can however create an IDocumentFilter
that adds tags:
public class TagsFilter : IDocumentFilter
{
public void Apply(SwaggerDocument swaggerDoc, SchemaRegistry schemaRegistry, IApiExplorer apiExplorer)
{
if (swaggerDoc.tags == null)
{
swaggerDoc.tags = new List<Tag>();
}
swaggerDoc.tags.Add(new Tag {name = "pet", description = "Everything about your Pets"});
}
}
After adding this filter to the config the UI displays the description.
In the demo here swagger demo url,the resource list h2 has some description,
How can I achieve this effects?