Fix the Tags within swagger
This commit is contained in:
@@ -10,8 +10,8 @@ public class GetContents(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Tags("Contents");
|
||||
Get("/api/contents/{ContentId:guid}");
|
||||
Options( o => o.WithTags("Contents"));
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -10,8 +10,8 @@ public class GetMessages(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Tags("Messages");
|
||||
Get("/api/messages/{SubjectId:guid}");
|
||||
Options(o => o.WithTags("Messages"));
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user