Получить уведомление по ID
id
curl -L \ --url 'http://api.client.nbcgate.tech//api/notification/{id}' \ --header 'Authorization: YOUR_API_KEY'
{ "date": "text", "isRead": true, "message": "text", "notificationCategoryID": 1, "notificationID": 1, "notificationTypeID": 1 }
Получить непрочитанные уведомления
curl -L \ --request POST \ --url 'http://api.client.nbcgate.tech//api/notification' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "notificationCategoryID": [ 1 ], "top": 1 }'
[ { "date": "text", "isRead": true, "message": "text", "notificationCategoryID": 1, "notificationID": 1, "notificationTypeID": 1 } ]
Отметить уведомление прочитанным
curl -L \ --request PUT \ --url 'http://api.client.nbcgate.tech//api/notification' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '[ { "notificationCategoryID": 1, "notification_id": 1 } ]'
No body