Separate the endpoints by new groups
This commit is contained in:
@@ -16,7 +16,7 @@ public class ChangeAboutHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/about");
|
Post("/api/creators/{CreatorId}/about");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class ChangeBannerHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/banner");
|
Post("/api/creators/{CreatorId}/banner");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
AllowFileUploads();
|
AllowFileUploads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class ChangeColorsHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/colors");
|
Post("/api/creators/{CreatorId}/colors");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(ChangeColorsRequest request, CancellationToken ct)
|
public override async Task HandleAsync(ChangeColorsRequest request, CancellationToken ct)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class ChangeLogoHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/logo");
|
Post("/api/creators/{CreatorId}/logo");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
AllowFileUploads();
|
AllowFileUploads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class ChangeSocialsHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/socials");
|
Post("/api/creators/{CreatorId}/socials");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(ChangeSocialsRequest request, CancellationToken ct)
|
public override async Task HandleAsync(ChangeSocialsRequest request, CancellationToken ct)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public sealed class CreateCreatorHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators");
|
Post("/api/creators");
|
||||||
Options(o => o.WithTags("Contents"));
|
Options(o => o.WithTags("Creators"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class GetCreatorByAliasHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Get("/api/creators/@{Name}");
|
Get("/api/creators/@{Name}");
|
||||||
Options((o => o.WithTags("Contents")));
|
Options((o => o.WithTags("Creators")));
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class GetCreatorByIdHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Get("/api/creators/{CreatorId}");
|
Get("/api/creators/{CreatorId}");
|
||||||
Options((o => o.WithTags("Contents")));
|
Options((o => o.WithTags("Creators")));
|
||||||
AllowAnonymous();
|
AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class GetSubscriptionsHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Get("/api/subscriptions");
|
Get("/api/subscriptions");
|
||||||
Options((o => o.WithTags("Creators")));
|
Options((o => o.WithTags("Subscriptions")));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(
|
public override async Task HandleAsync(
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public sealed class SubscribeToCreatorHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/subscribe");
|
Post("/api/creators/{CreatorId}/subscribe");
|
||||||
Options((o => o.WithTags("Creators")));
|
Options((o => o.WithTags("Subscriptions")));
|
||||||
Description(x => x.Accepts<string>("*/*"));
|
Description(x => x.Accepts<string>("*/*"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public class UnsubscribeFromCreatorHandler(
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/api/creators/{CreatorId}/unsubscribe");
|
Post("/api/creators/{CreatorId}/unsubscribe");
|
||||||
Options((o => o.WithTags("Creators")));
|
Options((o => o.WithTags("Subscriptions")));
|
||||||
Description(x => x.Accepts<string>("*/*"));
|
Description(x => x.Accepts<string>("*/*"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user