Request:
Methods: POST, OPTIONS.
URL: /api/v1/logs/push/.
Request body: list of logs in the JSON format.
On successful adding of logs:
{"status": "OK"}
It requests logs storage settings on server.
Request:
Methods: GET, OPTIONS.
URL: /api/v1/logs/schedule.
Schedule description in the JSON format. Example:
{
"trim": true,
"schedule": "0 * 0 0 0 (m/h/dM/MY/dw)"
}
Description of fields:
trim. Delete logs from device after their sending to server.
schedule. Schedule for sending logs to server in the crontab format.
Getting data about the current mobile platform server version and API version that are supported.
Request:
Methods: GET, OPTIONS.
URL: /api/info/.
On successful request:
{
"platform": {
"version": "v18.04.2-70-g3dca9f8"
},
"api": [{
"version": "v1"
}]
}
See also: