This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Sending Requests: Get Requests.
Mihou edited this page Jun 22, 2021
·
1 revision
You can use the Queria format:
database.collection.get(identifier, {"unique":"Unique value for callbacks, this is optional"})
If you don't need the unique value for callbacks, feel free to use below:
database.collection.get(identifier)
Or you can choose to use the JSON
format which has fields as written below.
The method
field for this must be get
.
FIELD | TYPE | DESCRIPTION |
---|---|---|
method | string | The type of request to send (GET/ADD/DELETE/REVERT/AGGREGATE/ETC) |
database | string | The database that holds the item. |
collection | string | The collection that holds the item. |
identifier | string | The item's identifier name. |
unique | string | The unique value to return (used for getting back exact responses from the server). |
FIELD | TYPE | DESCRIPTION |
---|---|---|
response | json | The response from the server, it will always be JSON for specific methods like (GET, ADD, UPDATE). |
kode | integer | The server reply code (1 for success, 0 for no results, -1 for invalid request). |
replyTo | string | The unique code sent back (for callbacks). |