Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Nancy.Metadata.Swagger/Fluent/SwaggerEndpointInfoExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down