Skip to content

Commit

Permalink
(#87) update endpoints uri
Browse files Browse the repository at this point in the history
  • Loading branch information
eggwhat committed Apr 26, 2024
1 parent 4758515 commit 1102d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static async Task Main(string[] args)
.Get<GetChildrenOrganizations, IEnumerable<OrganizationDto>>("organizations/{organizationId}/children")
.Post<AddOrganization>("organizations",
afterDispatch: (cmd, ctx) => ctx.Response.Created($"organizations/root"))
.Post<AddOrganizerToOrganization>("organizations/organizer")
.Delete<RemoveOrganizerFromOrganization>("organizations/organizer")
.Post<AddOrganizerToOrganization>("organizations/{organizationId}/organizer")
.Delete<RemoveOrganizerFromOrganization>("organizations/{organizationId}/organizer/{organizerId}")
))
.UseLogging()
.Build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ namespace MiniSpace.Services.Organizations.Application.Commands
{
public class RemoveOrganizerFromOrganization : ICommand
{
public Guid OrganizationId { get; }
public Guid OrganizerId { get; }
public Guid OrganizationId { get; set; }
public Guid OrganizerId { get; set; }

public RemoveOrganizerFromOrganization(Guid organizationId, Guid organizerId)
{
Expand Down

0 comments on commit 1102d7b

Please sign in to comment.