Licence
MIT
Version
1.0.86
Deps
37
Size
43.1 MB
Vulns
22
Weekly
0
common
TODO: description
Usage
const common = require('common');
// TODO: DEMONSTRATE API
API Compatible Specs
Main API
- API for retrieving ME
users/{role}/me - GET
Example body
{
data: {
walletAddress: str,
avatar: str,
username: str
id: str
}
}
- Get current user firebase notification token
user-notification/token - GET
Example body
{
data: {
notification_identifier: str
}
}
- Update notification token
user-notification/token - POST
- Mark notification read
user-notification/{noti-id}/mark-as-read - PATCH
- Mark notification mark as read
user-notification/mark-as-read-all - POST
- Get notification list
user-notification/ - GET
Example body
{
data: {
items: [
{
content: json_string,
id: string,
is_read: bool,
send-_at: ISO_date
type_id: str_capitalized
}
]
}
}