dino-market-ui-seedwork
v1.0.86
Published
mutual component for all package
Downloads
773
Maintainers
Readme
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
}
]
}
}