Skip to content

Ntrada update - media files #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ modules:
localUrl: localhost:5004
url: identity-service



reports:
path: /reports
routes:
Expand Down Expand Up @@ -189,6 +191,8 @@ modules:
localUrl: localhost:5005
url: reports-service



notifications:
path: /notifications
routes:
Expand All @@ -209,6 +213,8 @@ modules:
localUrl: localhost:5006
url: notifications-service



students:
path: /students
routes:
Expand Down Expand Up @@ -266,6 +272,8 @@ modules:
localUrl: localhost:5007
url: students-service



events:
path: /events
routes:
Expand Down Expand Up @@ -345,11 +353,31 @@ modules:
downstream: events-service/events/organizer/{organizerId}
auth: true

- upstream: /{eventId}/participants
method: GET
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

- upstream: /{eventId}/participants
method: POST
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

- upstream: /{eventId}/participants
method: DELETE
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

services:
events-service:
localUrl: localhost:5008
url: events-service



comments:
path: /comments
routes:
Expand Down Expand Up @@ -399,6 +427,8 @@ modules:
localUrl: localhost:5009
url: comments-service



reactions:
path: /reactions
routes:
Expand Down Expand Up @@ -429,6 +459,8 @@ modules:
localUrl: localhost:5010
url: reactions-service



statistics:
path: /statistics
routes:
Expand All @@ -455,6 +487,8 @@ modules:
localUrl: localhost:5011
url: statistics-service



friends:
path: /friends
routes:
Expand Down Expand Up @@ -536,6 +570,8 @@ modules:
localUrl: localhost:5012
url: friends-service



posts:
path: /posts
routes:
Expand Down Expand Up @@ -578,12 +614,45 @@ modules:
downstream: posts-service/posts/{postId}
auth: true


services:
posts-service:
localUrl: localhost:5013
url: posts-service




mediafiles:
path: /media-files
routes:
- upstream: /
method: POST
use: downstream
downstream: mediafiles-service/media-files
auth: true

- upstream: /{mediaFileId}
method: GET
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}

- upstream: /{mediaFileId}/original
method: GET
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}/original

- upstream: /{mediaFileId}
method: DELETE
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}
auth: true

services:
mediafiles-service:
localUrl: localhost:5014
url: mediafiles-service



organizations:
path: /organizations
routes:
Expand All @@ -592,23 +661,24 @@ modules:
use: downstream
downstream: organizations-service/organizations
auth: true

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

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

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

- upstream: /
method: GET
use: downstream
downstream: organizations-service/organizations

- upstream: /{organizationId}
method: GET
Expand All @@ -630,6 +700,11 @@ modules:
use: downstream
downstream: organizations-service/organizations/{organizationId}/children

- upstream: /{organizationId}/children/all
method: GET
use: downstream
downstream: organizations-service/organizations/{organizationId}/children/all

- upstream: /organizer/{organizerId}
method: GET
use: downstream
Expand Down
74 changes: 65 additions & 9 deletions MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ modules:
method: GET
use: return_value
returnValue: Welcome to MiniSpace API [async]!

identity:
path: /identity
routes:
Expand Down Expand Up @@ -352,6 +353,24 @@ modules:
downstream: events-service/events/organizer/{organizerId}
auth: true

- upstream: /{eventId}/participants
method: GET
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

- upstream: /{eventId}/participants
method: POST
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

- upstream: /{eventId}/participants
method: DELETE
use: downstream
downstream: events-service/events/{eventId}/participants
auth: true

services:
events-service:
localUrl: localhost:5008
Expand Down Expand Up @@ -595,13 +614,44 @@ modules:
downstream: posts-service/posts/{postId}
auth: true


services:
posts-service:
localUrl: localhost:5013
url: posts-service




mediafiles:
path: /media-files
routes:
- upstream: /
method: POST
use: downstream
downstream: mediafiles-service/media-files
auth: true

- upstream: /{mediaFileId}
method: GET
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}

- upstream: /{mediaFileId}/original
method: GET
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}/original

- upstream: /{mediaFileId}
method: DELETE
use: downstream
downstream: mediafiles-service/media-files/{mediaFileId}
auth: true

services:
mediafiles-service:
localUrl: localhost:5014
url: mediafiles-service



organizations:
path: /organizations
Expand All @@ -611,23 +661,24 @@ modules:
use: downstream
downstream: organizations-service/organizations
auth: true

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

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

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

- upstream: /
method: GET
use: downstream
downstream: organizations-service/organizations

- upstream: /{organizationId}
method: GET
Expand All @@ -649,6 +700,11 @@ modules:
use: downstream
downstream: organizations-service/organizations/{organizationId}/children

- upstream: /{organizationId}/children/all
method: GET
use: downstream
downstream: organizations-service/organizations/{organizationId}/children/all

- upstream: /organizer/{organizerId}
method: GET
use: downstream
Expand Down
Loading
Loading