| title | language_tabs | language_clients | toc_footers | includes | search | highlight_theme | headingLevel | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Notification Service v1.0.0 |
|
|
false |
darkula |
2 |
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
sandbox
Base URLs:
- HTTP Authentication, scheme: bearer
Code samples
const fetch = require('node-fetch');
const inputBody = [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
];
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users/bulk',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /notification-users/bulk
Body parameter
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
]| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | NewNotificationUser | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification User model instance | NotificationUser |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notification-users/count
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | NotificationUser model count | loopback.Count |
Code samples
const fetch = require('node-fetch');
fetch('http://localhost:3000/notification-users/hard',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notification-users/hard
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Notification DELETE success | None |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json'
};
fetch('http://localhost:3000/notification-users/{id}',
{
method: 'PUT',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /notification-users/{id}
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | NotificationUser | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | NotificationUser PUT success | None |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json'
};
fetch('http://localhost:3000/notification-users/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /notification-users/{id}
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | NotificationUserPartial | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | NotificationUser PATCH success | None |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notification-users/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | NotificationUser instance | NotificationUser |
Code samples
const fetch = require('node-fetch');
fetch('http://localhost:3000/notification-users/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notification-users/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | NotificationUser DELETE success | None |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /notification-users
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | NewNotificationUser | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | NotificationUser model instance | NotificationUser |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /notification-users
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
| body | body | NotificationUserPartial | false | none |
Example responses
200 Response
{
"count": 0
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | NotificationUser PATCH success count | loopback.Count |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notification-users
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| filter | query | notification_users.Filter | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
]| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Array of NotificationUser model instances | Inline |
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [NotificationUser] | false | none | none |
| » NotificationUser | NotificationUser | false | none | none |
| »» deleted | boolean | false | none | none |
| »» deletedOn | string(date-time)¦null | false | none | none |
| »» deletedBy | string¦null | false | none | none |
| »» createdOn | string(date-time) | false | none | none |
| »» modifiedOn | string(date-time) | false | none | none |
| »» id | string | false | none | none |
| »» notificationId | string | true | none | none |
| »» userId | string | true | none | none |
| »» isRead | boolean | false | none | none |
| »» actionMeta | object | false | none | none |
Code samples
const fetch = require('node-fetch');
fetch('http://localhost:3000/notification-users',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notification-users
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Notification DELETE success | None |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notification-users/{id}/notification',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notification-users/{id}/notification
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"id": "string",
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
]| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification belonging to NotificationUser | Inline |
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Notification] | false | none | none |
| » Notification | Notification | false | none | none |
| »» id | string | false | none | none |
| »» subject | string¦null | false | none | none |
| »» body | string | true | none | none |
| »» receiver | object | true | none | none |
| »» type | number | true | none | none |
| »» sentDate | string(date-time) | false | none | none |
| »» options | object | false | none | none |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"receiver": {},
"type": 0,
"options": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'string',
'pubnubToken':'string'
};
fetch('http://localhost:3000/notifications/access/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /notifications/access/{id}
Body parameter
{
"receiver": {},
"type": 0,
"options": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Authorization | header | string | false | none |
| pubnubToken | header | string | true | none |
| body | body | NotificationAccess | false | none |
Example responses
200 Response
{
"ttl": 0,
"cipherKey": "string"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Access response | AccessResponseDto |
Code samples
const fetch = require('node-fetch');
fetch('http://localhost:3000/notifications/access/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notifications/access/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Object with success | None |
Code samples
const fetch = require('node-fetch');
const inputBody = [
{
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
];
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/bulk',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /notifications/bulk
Body parameter
[
{
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
]| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | NotificationExcluding_id_ | false | none |
Example responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Array of Notifications | None |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notifications/count
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification model count | loopback.Count |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notifications/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"id": "string",
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification model instance | Notification |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /notifications
Body parameter
{
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | NotificationExcluding_id_ | false | none |
Example responses
200 Response
{
"id": "string",
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification model instance | Notification |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notifications
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| filter | query | notifications.Filter | false | none |
Example responses
200 Response
[
{
"id": "string",
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
]| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Array of Notification model instances | Inline |
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Notification] | false | none | none |
| » Notification | Notification | false | none | none |
| »» id | string | false | none | none |
| »» subject | string¦null | false | none | none |
| »» body | string | true | none | none |
| »» receiver | object | true | none | none |
| »» type | number | true | none | none |
| »» sentDate | string(date-time) | false | none | none |
| »» options | object | false | none | none |
Code samples
const fetch = require('node-fetch');
fetch('http://localhost:3000/notifications',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notifications
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| where | query | object | false | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Notification DELETE success | None |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/{id}/notification-users',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /notifications/{id}/notification-users
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | NewNotificationUserInNotification | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification model instance | NotificationUser |
Code samples
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/{id}/notification-users',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /notifications/{id}/notification-users
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| where | query | object | false | none |
| body | body | NotificationUserPartial | false | none |
Example responses
200 Response
{
"count": 0
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification.NotificationUser PATCH success count | loopback.Count |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/{id}/notification-users',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /notifications/{id}/notification-users
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| filter | query | object | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
]| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Array of Notification has many NotificationUser | Inline |
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [NotificationUser] | false | none | none |
| » NotificationUser | NotificationUser | false | none | none |
| »» deleted | boolean | false | none | none |
| »» deletedOn | string(date-time)¦null | false | none | none |
| »» deletedBy | string¦null | false | none | none |
| »» createdOn | string(date-time) | false | none | none |
| »» modifiedOn | string(date-time) | false | none | none |
| »» id | string | false | none | none |
| »» notificationId | string | true | none | none |
| »» userId | string | true | none | none |
| »» isRead | boolean | false | none | none |
| »» actionMeta | object | false | none | none |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/notifications/{id}/notification-users',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /notifications/{id}/notification-users
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Notification.NotificationUser DELETE success count | loopback.Count |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('http://localhost:3000/ping',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /ping
Example responses
200 Response
{
"greeting": "string",
"date": "string",
"url": "string",
"headers": {
"Content-Type": "string"
}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Ping Response | PingResponse |
Code samples
const fetch = require('node-fetch');
const headers = {
'Accept':'text/html'
};
fetch('http://localhost:3000/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /
Example responses
200 Response
"string"
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Home Page | string |
{
"id": "string",
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
Notification
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | string | false | none | none |
| subject | string¦null | false | none | none |
| body | string | true | none | none |
| receiver | object | true | none | none |
| type | number | true | none | none |
| sentDate | string(date-time) | false | none | none |
| options | object | false | none | none |
{
"subject": "string",
"body": "string",
"receiver": {},
"type": 0,
"sentDate": "2019-08-24T14:15:22Z",
"options": {}
}
NotificationExcluding_id_
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| subject | string¦null | false | none | none |
| body | string | true | none | none |
| receiver | object | true | none | none |
| type | number | true | none | none |
| sentDate | string(date-time) | false | none | none |
| options | object | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
NotificationUser
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| deleted | boolean | false | none | none |
| deletedOn | string(date-time)¦null | false | none | none |
| deletedBy | string¦null | false | none | none |
| createdOn | string(date-time) | false | none | none |
| modifiedOn | string(date-time) | false | none | none |
| id | string | false | none | none |
| notificationId | string | true | none | none |
| userId | string | true | none | none |
| isRead | boolean | false | none | none |
| actionMeta | object | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
NewNotificationUser
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| deleted | boolean | false | none | none |
| deletedOn | string(date-time)¦null | false | none | none |
| deletedBy | string¦null | false | none | none |
| createdOn | string(date-time) | false | none | none |
| modifiedOn | string(date-time) | false | none | none |
| notificationId | string | true | none | none |
| userId | string | true | none | none |
| isRead | boolean | false | none | none |
| actionMeta | object | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": "string",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
NotificationUserPartial
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| deleted | boolean | false | none | none |
| deletedOn | string(date-time)¦null | false | none | none |
| deletedBy | string¦null | false | none | none |
| createdOn | string(date-time) | false | none | none |
| modifiedOn | string(date-time) | false | none | none |
| id | string | false | none | none |
| notificationId | string | false | none | none |
| userId | string | false | none | none |
| isRead | boolean | false | none | none |
| actionMeta | object | false | none | none |
{
"ttl": 0,
"cipherKey": "string"
}
AccessResponseDto
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ttl | number | false | none | none |
| cipherKey | string | false | none | none |
{
"receiver": {},
"type": 0,
"options": {}
}
NotificationAccess
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| receiver | object | true | none | this will contain the list of reciever to give access |
| type | number | true | none | none |
| options | object | false | none | this will contain the ttl property for now |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"notificationId": "string",
"userId": "string",
"isRead": true,
"actionMeta": {}
}
NewNotificationUserInNotification
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| deleted | boolean | false | none | none |
| deletedOn | string(date-time)¦null | false | none | none |
| deletedBy | string¦null | false | none | none |
| createdOn | string(date-time) | false | none | none |
| modifiedOn | string(date-time) | false | none | none |
| notificationId | string | false | none | none |
| userId | string | true | none | none |
| isRead | boolean | false | none | none |
| actionMeta | object | false | none | none |
{
"count": 0
}
loopback.Count
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| count | number | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
notification_users.ScopeFilter
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| offset | integer | false | none | none |
| limit | integer | false | none | none |
| skip | integer | false | none | none |
| order | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| where | object | false | none | none |
| fields | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | object | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| include | [object] | false | none | none |
{
"relation": "string",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
notification_users.IncludeFilter.Items
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| relation | string | false | none | none |
| scope | notification_users.ScopeFilter | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"id": true,
"notificationId": true,
"userId": true,
"isRead": true,
"actionMeta": true
},
"include": [
{
"relation": "string",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
notification_users.Filter
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| offset | integer | false | none | none |
| limit | integer | false | none | none |
| skip | integer | false | none | none |
| order | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| where | object | false | none | none |
| fields | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | object | false | none | none |
| »» deleted | boolean | false | none | none |
| »» deletedOn | boolean | false | none | none |
| »» deletedBy | boolean | false | none | none |
| »» createdOn | boolean | false | none | none |
| »» modifiedOn | boolean | false | none | none |
| »» id | boolean | false | none | none |
| »» notificationId | boolean | false | none | none |
| »» userId | boolean | false | none | none |
| »» isRead | boolean | false | none | none |
| »» actionMeta | boolean | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| include | [anyOf] | false | none | none |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | notification_users.IncludeFilter.Items | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
notifications.ScopeFilter
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| offset | integer | false | none | none |
| limit | integer | false | none | none |
| skip | integer | false | none | none |
| order | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| where | object | false | none | none |
| fields | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | object | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| include | [object] | false | none | none |
{
"relation": "string",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
notifications.IncludeFilter.Items
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| relation | string | false | none | none |
| scope | notifications.ScopeFilter | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"id": true,
"subject": true,
"body": true,
"receiver": true,
"type": true,
"sentDate": true,
"options": true
},
"include": [
{
"relation": "string",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
notifications.Filter
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| offset | integer | false | none | none |
| limit | integer | false | none | none |
| skip | integer | false | none | none |
| order | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| where | object | false | none | none |
| fields | any | false | none | none |
oneOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | object | false | none | none |
| »» id | boolean | false | none | none |
| »» subject | boolean | false | none | none |
| »» body | boolean | false | none | none |
| »» receiver | boolean | false | none | none |
| »» type | boolean | false | none | none |
| »» sentDate | boolean | false | none | none |
| »» options | boolean | false | none | none |
xor
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | [string] | false | none | none |
continued
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| include | [anyOf] | false | none | none |
anyOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | notifications.IncludeFilter.Items | false | none | none |
or
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » anonymous | string | false | none | none |
{
"greeting": "string",
"date": "string",
"url": "string",
"headers": {
"Content-Type": "string"
}
}
PingResponse
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| greeting | string | false | none | none |
| date | string | false | none | none |
| url | string | false | none | none |
| headers | object | false | none | none |
| » Content-Type | string | false | none | none |