Notification
Получить непрочитанные уведомления
Authorizations
Body
idintegerOptional
notificationCategoryIDinteger[]Required
topintegerRequired
Responses
200
OK
application/json
400
Bad Request
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
default
application/json
post
POST //api/notification HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"id": 1,
"notificationCategoryID": [
1
],
"top": 1
}
[
{
"date": "text",
"isRead": true,
"message": "text",
"notificationCategoryID": 1,
"notificationID": 1,
"notificationTypeID": 1
}
]
Отметить уведомление прочитанным
Authorizations
Body
notificationCategoryIDintegerOptional
notification_idintegerOptional
Responses
204
No Content
400
Bad Request
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
default
application/json
put
PUT //api/notification HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 50
[
{
"notificationCategoryID": 1,
"notification_id": 1
}
]
No content
Получить уведомление по ID
Authorizations
Path parameters
idstringRequired
id
Responses
200
OK
application/json
400
Bad Request
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
default
application/json
get
GET //api/notification/{id} HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Accept: */*
{
"date": "text",
"isRead": true,
"message": "text",
"notificationCategoryID": 1,
"notificationID": 1,
"notificationTypeID": 1
}