Fix the Tags within swagger

This commit is contained in:
Jonathan Bourdon
2024-07-09 15:19:12 -04:00
parent 715bad702b
commit 349999722b
8 changed files with 10 additions and 12 deletions

View File

@@ -10,8 +10,8 @@ public class GetMessages(
{
public override void Configure()
{
Tags("Messages");
Get("/api/messages/{SubjectId:guid}");
Options(o => o.WithTags("Messages"));
AllowAnonymous();
}

View File

@@ -11,8 +11,8 @@ public class GetMessagesByUser(
{
public override void Configure()
{
Tags("Messages");
Get("/api/messages/user/{UserId:guid}");
Options(o => o.WithTags("Messages"));
}
public override async Task HandleAsync(

View File

@@ -14,9 +14,8 @@ public class PostMessage(
{
public override void Configure()
{
// TODO: Find how to specify the name we see in Swagger
Tags("Messages");
Post("/api/messages");
Options(o => o.WithTags("Messages"));
}
public override async Task HandleAsync(

View File

@@ -15,8 +15,8 @@ public sealed class PostReplyMessage(
{
public override void Configure()
{
Tags("Messages");
Post("/api/messages/reply");
Options(o => o.WithTags("Messages"));
}
public override async Task HandleAsync(