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 GetContents(
{
public override void Configure()
{
Tags("Contents");
Get("/api/contents/{ContentId:guid}");
Options( o => o.WithTags("Contents"));
AllowAnonymous();
}

View File

@@ -10,8 +10,8 @@ public class GetContentsByUser(
{
public override void Configure()
{
Tags("Contents");
Get("/api/contents/user/{UserId:guid}");
Options( o => o.WithTags("Contents"));
AllowAnonymous();
}

View File

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

View File

@@ -10,7 +10,7 @@ public class GetCreatorByAlias(
{
public override void Configure()
{
Tags("Creators");
Options((o => o.WithTags("Creators")));
Get("/api/creators/@{CreatorAlias}");
AllowAnonymous();
}
@@ -19,9 +19,9 @@ public class GetCreatorByAlias(
CancellationToken ct)
{
var creatorAlias = Route<string>("CreatorAlias");
ArgumentException.ThrowIfNullOrEmpty(creatorAlias);
var user = await identityService.FindUserByCreatorAliasAsync(creatorAlias, ct);
await SendAsync(user, cancellation: ct);

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(