Notification Tokens Model

Notification token is the way in which the API connects with a device for the functionality of notifications, with this token the API knows to which device the notification has to be sent, in summary it is the device identifier.

The users model has the following endpoints:

Action

Method

Resource

Description

Get All

GET

/users/_user_id_/notification_tokens

List all notification tokens of a user

Create

POST

/users/_user_id_/notification_tokens

Add a new notification token to a user

Edit

PUT

/users/_user_id_/notification_tokens/:notification_tokens

Edit a notification token of a user

Delete

DELETE

/users/_user_id_/notification_tokens/:notification_tokens

Remove a notification token of a user

The users model has the following attributes:

Attribute

Type

Required

Description

token

String

The notification token

user_id

Integer

The user id

app

String

The name of the app. (orderingapp, businessapp, deliveryapp)