diff --git a/Nancy.Metadata.Swagger/Fluent/SwaggerEndpointInfoExtensions.cs b/Nancy.Metadata.Swagger/Fluent/SwaggerEndpointInfoExtensions.cs index 945136b..5e2abb5 100644 --- a/Nancy.Metadata.Swagger/Fluent/SwaggerEndpointInfoExtensions.cs +++ b/Nancy.Metadata.Swagger/Fluent/SwaggerEndpointInfoExtensions.cs @@ -39,6 +39,16 @@ public static SwaggerEndpointInfo WithResponse(this SwaggerEndpointInfo endpoint return endpointInfo; } + public static SwaggerEndpointInfo WithTags(this SwaggerEndpointInfo endpointInfo, params string[] tags) + { + if (endpointInfo.Tags == null) + { + endpointInfo.Tags = tags; + } + + return endpointInfo; + } + public static SwaggerEndpointInfo WithRequestParameter(this SwaggerEndpointInfo endpointInfo, string name, string type = "string", string format = null, bool required = true, string description = null, string loc = "path")