Fix the Tags within swagger
This commit is contained in:
@@ -10,8 +10,8 @@ public class GetContents(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Contents");
|
|
||||||
Get("/api/contents/{ContentId:guid}");
|
Get("/api/contents/{ContentId:guid}");
|
||||||
|
Options( o => o.WithTags("Contents"));
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ public class GetContentsByUser(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Contents");
|
|
||||||
Get("/api/contents/user/{UserId:guid}");
|
Get("/api/contents/user/{UserId:guid}");
|
||||||
|
Options( o => o.WithTags("Contents"));
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,8 @@ public class PostContent(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
// TODO: Find how to specify the name we see in Swagger
|
|
||||||
Tags("Contents");
|
|
||||||
Post("/api/contents");
|
Post("/api/contents");
|
||||||
|
Options( o => o.WithTags("Contents"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public class GetCreatorByAlias(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Creators");
|
Options((o => o.WithTags("Creators")));
|
||||||
Get("/api/creators/@{CreatorAlias}");
|
Get("/api/creators/@{CreatorAlias}");
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ public class GetMessages(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Messages");
|
|
||||||
Get("/api/messages/{SubjectId:guid}");
|
Get("/api/messages/{SubjectId:guid}");
|
||||||
|
Options(o => o.WithTags("Messages"));
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ public class GetMessagesByUser(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Messages");
|
|
||||||
Get("/api/messages/user/{UserId:guid}");
|
Get("/api/messages/user/{UserId:guid}");
|
||||||
|
Options(o => o.WithTags("Messages"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -14,9 +14,8 @@ public class PostMessage(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
// TODO: Find how to specify the name we see in Swagger
|
|
||||||
Tags("Messages");
|
|
||||||
Post("/api/messages");
|
Post("/api/messages");
|
||||||
|
Options(o => o.WithTags("Messages"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ public sealed class PostReplyMessage(
|
|||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Tags("Messages");
|
|
||||||
Post("/api/messages/reply");
|
Post("/api/messages/reply");
|
||||||
|
Options(o => o.WithTags("Messages"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
Reference in New Issue
Block a user