Requires
Members
(route) Get all the users expoToken for one notificationtype
Route:
Method | Path |
GET |
/notification/:notificationType |
undefined
Route Parameters:
Name |
Type |
Description |
notificationType |
String |
Wanted notification type. |
- Source:
(route) Get one user from the database
Route:
Method | Path |
GET |
/user/:userId |
undefined
Route Parameters:
Name |
Type |
Description |
userId |
String |
The users unique userId. |
- Source:
(route) Get users notificationSettings.
Route:
Method | Path |
PUT |
/notification/settings |
Get the users notificationsettings.
If hes not in the database. The server will insert him.
Body Parameters:
Name |
Type |
Attributes |
Description |
expoToken |
String |
optional |
The users unique device expoToken. |
associationType |
String |
optional |
The users associationType e.g "BANK" |
- Source:
(route) Insert user to the userTable.
Route:
undefined
Body Parameters:
Name |
Type |
Attributes |
Description |
userId |
String |
optional |
The users unique userId. |
expoToken |
String |
optional |
The users unique device expoToken. |
orgType |
String |
optional |
The users organisationType. |
ordId |
String |
optional |
The users organisationId. |
orgName |
String |
optional |
The users organisationName. |
- Source:
(route) Update users notificationsettings.
Route:
Method | Path |
PUT |
/notification |
Used to change notificationsettings.
Body Parameters:
Name |
Type |
Attributes |
Description |
boolean |
newValue |
optional |
Subscribe or not to the notificationType. |
String |
expoToken |
optional |
The users unique device expoToken. |
String |
notificationType |
optional |
Selected notification type to change. |
String |
associationType |
optional |
Users associationType e.g "BANK". |
- Source:
(route) Insert user to biometric table
Route:
Method | Path |
GET |
/biometric/:expoToken |
Retrieve the data for one user.
The server checks if the user is already in the table.
If it's not it inserts it.
Route Parameters:
Name |
Type |
Description |
tokenId |
String |
The users unique device expoToken. |
- Source:
(route) Set biometric settings for one user.
Route:
Method | Path |
PUT |
/biometric/ |
Stores the users answer if he wants to use biometric login in the future.
Body Parameters:
Name |
Type |
Attributes |
Description |
option |
boolean |
optional |
If the user wants to use biometric login in the future. |
tokenId |
String |
optional |
The users unique device expoToken. |
- Source:
(route) Set the users answer on the prompMessage on first login.
Route:
Method | Path |
PUT |
/biometric/prompt |
Sets the boolean value for the user after he gets the prompt message
regarding whether or not to use biometric login.
Body Parameters:
Name |
Type |
Attributes |
Description |
option |
boolean |
optional |
Whether or not the user has read the first prompt message. |
tokenId |
String |
optional |
The users unique device expoToken |
- Source: