Create a Get Notification API and expose it through API Gateway:
Endpoint: GET /api/notifications
Description: Retrieves all notifications relevant to the current user, including Help Match Requests and General Notifications.
Request Parameters: Path Param: userId
Response Body:
{
"type": string,
"title":string,
"message":string,
"date": Date
},
Example Response:
[
{
"type": "Volunteer",
"title": "New Match Request",
"message": "You have new Volunteer match request in Logistics",
"date": "Mar 15, 2023, 10:30 AM"
},
{
"type": "helpRequest",
"title": "Educational Help",
"message": "Need help with Logistics",
"date": "Dec 16, 2023, 10:30 AM"
}
]
As of now create the flow for the API and send the GET request.
Once the communication between request microservice is done.We need to get the notifications from request microservice for help requests and in volunteer microservice we will be having notification table for general notifications.Both joint we should be able to send it to the API response.
TBD:
- Request microservice sending Help Match Requests
- Notification table with database team
Create a Get Notification API and expose it through API Gateway:
Endpoint: GET /api/notifications
Description: Retrieves all notifications relevant to the current user, including Help Match Requests and General Notifications.
Request Parameters: Path Param: userId
Response Body:
{
"type": string,
"title":string,
"message":string,
"date": Date
},
Example Response:
[
{
"type": "Volunteer",
"title": "New Match Request",
"message": "You have new Volunteer match request in Logistics",
"date": "Mar 15, 2023, 10:30 AM"
},
{
"type": "helpRequest",
"title": "Educational Help",
"message": "Need help with Logistics",
"date": "Dec 16, 2023, 10:30 AM"
}
]
As of now create the flow for the API and send the GET request.
Once the communication between request microservice is done.We need to get the notifications from request microservice for help requests and in volunteer microservice we will be having notification table for general notifications.Both joint we should be able to send it to the API response.
TBD: