cURL
curl --request GET \ --url https://localhost:5000/notifications/all \ --header 'Authorization: Bearer <token>'
{ "success": true, "notifications": [ { "type": "like", "from": "<string>", "to": "<string>", "_id": "<string>", "post": "<string>", "comment": "<string>", "isRead": true, "isFollowing": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ] }
Get all notifications for the current user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User notifications
true
Show child attributes