I\'m using Firebase to store application tokens with names, using the REST api.
This is the data structure I\'m using:
There are two ways:
if you want to add on row:
method: PUT
url: https://yourID.firebaseio.com/pages/your_object_name.json
data:
{
"1": {
"id": "5",
"name": "page 4"
}
}
if you want to add multiple rows:
methode: PATCH
url: https://yourID.firebaseio.com/pages.json
data:
{
"1": {
"id": "5",
"name": "page 4"
},
"2": {
"id": "5",
"name": "page 4"
},
"3": {
"id": "5",
"name": "page 4"
}
}