Skip to content

Commit

Permalink
Merge pull request #180 from SaintAngeLs/organizations_update
Browse files Browse the repository at this point in the history
Organizations update - new endpoint
  • Loading branch information
eggwhat authored May 25, 2024
2 parents 810a4f3 + 800094f commit 1220872
Show file tree
Hide file tree
Showing 281 changed files with 160 additions and 43,783 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,12 @@ modules:
downstream: organizations-service/organizations
auth: true

- upstream: /{organizationId}
method: DELETE
use: downstream
downstream: organizations-service/organizations/{organizationId}
auth: true

- upstream: /{organizationId}/children
method: POST
use: downstream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,12 @@ modules:
downstream: organizations-service/organizations
auth: true

- upstream: /{organizationId}
method: DELETE
use: downstream
downstream: organizations-service/organizations/{organizationId}
auth: true

- upstream: /{organizationId}/children
method: POST
use: downstream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ modules:
downstream: organizations-service/organizations
auth: true

- upstream: /{organizationId}
method: DELETE
use: downstream
downstream: organizations-service/organizations/{organizationId}
auth: true

- upstream: /{organizationId}/children
method: POST
use: downstream
Expand Down
6 changes: 6 additions & 0 deletions MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,12 @@ modules:
downstream: organizations-service/organizations
auth: true

- upstream: /{organizationId}
method: DELETE
use: downstream
downstream: organizations-service/organizations/{organizationId}
auth: true

- upstream: /{organizationId}/children
method: POST
use: downstream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static async Task Main(string[] args)
afterDispatch: (cmd, ctx) => ctx.Response.Created($"organizations/root"))
.Post<CreateOrganization>("organizations/{organizationId}/children",
afterDispatch: (cmd, ctx) => ctx.Response.Created($"organizations/{cmd.OrganizationId}"))
.Delete<DeleteOrganization>("organizations/{organizationId}")
.Post<AddOrganizerToOrganization>("organizations/{organizationId}/organizer")
.Delete<RemoveOrganizerFromOrganization>("organizations/{organizationId}/organizer/{organizerId}")
))
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 1220872

Please sign in to comment.