npm.io
1.0.86 • Published 3 years ago

dino-market-ui-seedwork

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
  1. API for retrieving ME

users/{role}/me - GET

Example body

{
  data: {
    walletAddress: str,
    avatar: str,
    username: str
    id: str
  }
}
  1. Get current user firebase notification token

user-notification/token - GET

Example body

{
  data: {
    notification_identifier: str
  }
}
  1. Update notification token

user-notification/token - POST

  1. Mark notification read

user-notification/{noti-id}/mark-as-read - PATCH

  1. Mark notification mark as read

user-notification/mark-as-read-all - POST

  1. 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
      }
    ]
  }
}