Skip to content

Commit

Permalink
Merge pull request #406 from SaintAngeLs/organizations_events
Browse files Browse the repository at this point in the history
(#401) (#402) (#403) features for views, identity communication service
  • Loading branch information
DevITSharpPRO authored Sep 6, 2024
2 parents bc37afe + bb795ca commit 91fb896
Show file tree
Hide file tree
Showing 359 changed files with 13,822 additions and 2,005 deletions.
192 changes: 191 additions & 1 deletion MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,88 @@ modules:
notifications-service:
localUrl: localhost:5006
url: notifications-service


communication:
path: /communication
routes:
- upstream: /chats
method: POST
use: downstream
downstream: communication-service/communication/chats
auth: true

- upstream: /chats/{chatId}/messages
method: POST
use: downstream
downstream: communication-service/communication/chats/{chatId}/messages
auth: true
bind:
- chatId:{chatId}

- upstream: /chats/{chatId}/users
method: PUT
use: downstream
downstream: communication-service/communication/chats/{chatId}/users
auth: true
bind:
- chatId:{chatId}

- upstream: /chats/{chatId}/messages/{messageId}/status
method: PUT
use: downstream
downstream: communication-service/communication/chats/{chatId}/messages/{messageId}/status
auth: true
bind:
- chatId:{chatId}
- messageId:{messageId}

- upstream: /chats/user/{userId}
method: GET
use: downstream
downstream: communication-service/communication/chats/user/{userId}
auth: true
bind:
- userId:{userId}

- upstream: /chats/{chatId}
method: GET
use: downstream
downstream: communication-service/communication/chats/{chatId}
auth: true
bind:
- chatId:{chatId}

- upstream: /chats/{chatId}/messages
method: GET
use: downstream
downstream: communication-service/communication/chats/{chatId}/messages
auth: true
bind:
- chatId:{chatId}

- upstream: /chats/{chatId}/{userId}
method: DELETE
use: downstream
downstream: communication-service/communication/chats/{chatId}/{userId}
auth: true
bind:
- chatId:{chatId}
- userId:{userId}

- upstream: /chats/{chatId}/messages/{messageId}
method: DELETE
use: downstream
downstream: communication-service/communication/chats/{chatId}/messages/{messageId}
auth: true
bind:
- chatId:{chatId}
- messageId:{messageId}

services:
communication-service:
localUrl: localhost:5016
url: communication-service


students:
Expand Down Expand Up @@ -349,6 +431,30 @@ modules:
downstream: students-service/students/{studentId}/notifications
auth: true

- upstream: /profiles/users/{userId}/views/paginated
method: GET
use: downstream
downstream: students-service/students/profiles/users/{userId}/views/paginated
auth: true
bind:
- userId:{userId}

- upstream: /profiles/users/{userId}/views/viewed
method: GET
use: downstream
downstream: students-service/students/profiles/users/{userId}/views/viewed
auth: true
bind:
- userId:{userId}

- upstream: /{blockerId}/blocked-users
method: GET
use: downstream
downstream: students-service/students/{blockerId}/blocked-users
auth: true
bind:
- blockerId:{blockerId}

- upstream: /{studentId}
method: PUT
use: downstream
Expand Down Expand Up @@ -392,6 +498,32 @@ modules:
downstream: students-service/students/{studentId}/notifications
auth: true

- upstream: /profiles/users/{userProfileId}/view
method: POST
use: downstream
downstream: students-service/students/profiles/users/{userProfileId}/view
auth: true
bind:
- userProfileId:{userProfileId}

- upstream: /{blockerId}/block-user/{blockedUserId}
method: POST
use: downstream
downstream: students-service/students/{blockerId}/block-user/{blockedUserId}
auth: true
bind:
- blockerId:{blockerId}
- blockedUserId:{blockedUserId}

- upstream: /{blockerId}/unblock-user/{blockedUserId}
method: POST
use: downstream
downstream: students-service/students/{blockerId}/unblock-user/{blockedUserId}
auth: true
bind:
- blockerId:{blockerId}
- blockedUserId:{blockedUserId}

- upstream: /{studentId}/languages-and-interests
method: PUT
use: downstream
Expand Down Expand Up @@ -454,6 +586,23 @@ modules:
downstream: events-service/events/student/{studentId}
auth: true

- upstream: /users/{userId}/feed
method: GET
use: downstream
downstream: events-service/events/users/{userId}/feed
auth: true
bind:
- userId:{userId}

- upstream: /users/{userId}/views/paginated
method: GET
use: downstream
downstream: events-service/events/users/{userId}/views/paginated
auth: true
bind:
- userId:{userId}


- upstream: /{eventId}
method: DELETE
use: downstream
Expand Down Expand Up @@ -483,6 +632,14 @@ modules:
downstream: events-service/events/{eventId}/show-interest
auth: true

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

- upstream: /{eventId}/show-interest
method: DELETE
use: downstream
Expand Down Expand Up @@ -757,6 +914,22 @@ modules:
downstream: friends-service/friends/requests/sent/{userId}
auth: true

- upstream: /{userId}/followers
method: GET
use: downstream
downstream: friends-service/friends/{userId}/followers
auth: true
bind:
- userId: {userId}

- upstream: /{userId}/following
method: GET
use: downstream
downstream: friends-service/friends/{userId}/following
auth: true
bind:
- userId: {userId}

- upstream: /requests/{userId}/withdraw
method: PUT
use: downstream
Expand Down Expand Up @@ -918,7 +1091,7 @@ modules:
- upstream: /users/{userId}/organizations
method: GET
use: downstream
downstream: organizations-service/users/{userId}/organizations
downstream: organizations-service/organizations/users/{userId}/organizations
auth: true
bind:
- userId: {userId}
Expand All @@ -930,6 +1103,16 @@ modules:
auth: true
bind:
- organizationId: {organizationId}

- upstream: /users/{userId}/organizations/follow
method: GET
use: downstream
downstream: organizations-service/organizations/users/{userId}/organizations/follow
auth: true
bind:
- userId: {userId}



- upstream: /{organizationId}/details/gallery-users
method: GET
Expand All @@ -946,6 +1129,13 @@ modules:
bind:
- organizationId: {organizationId}

- upstream: /{organizationId}/requests
method: GET
use: downstream
downstream: organizations-service/organizations/{organizationId}/requests
bind:
- organizationId: {organizationId}

- upstream: /paginated
method: GET
use: downstream
Expand Down
Loading

0 comments on commit 91fb896

Please sign in to comment.