Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
ru:airlay:api:air-lay-v3 [2019/07/09 13:10] Рыков Павел [DataSet] |
ru:airlay:api:air-lay-v3 [2019/07/11 12:05] (текущий) Рыков Павел [Tracker] |
||
|---|---|---|---|
| Строка 38: | Строка 38: | ||
| /** | /** | ||
| * POST | * POST | ||
| + | | ||
| * Action for clean dataSet object | * Action for clean dataSet object | ||
| + | | ||
| * @param ObjectId $dataSetId DataSet Id | * @param ObjectId $dataSetId DataSet Id | ||
| * @return 200 OK | * @return 200 OK | ||
| Строка 44: | Строка 46: | ||
| / | / | ||
| </ | </ | ||
| - | ==== DataLoader | + | ==== Tracker |
| <code php> | <code php> | ||
| /** | /** | ||
| * POST | * POST | ||
| + | * Action connect device to tracker | ||
| | | ||
| - | * Action for edit dataSet objects. | + | * @param ObjectId $trackerId tracker id |
| - | * | + | * @return 200 OK |
| - | * @param ObjectId $dataSetId DataSet Id | + | |
| - | * @param string json $commit Commit in edit format | + | |
| - | * @return 200 Ok json/ | + | |
| */ | */ | ||
| - | /api/v3/dataSet/editor | + | /api/v3/tracker/connection |
| </ | </ | ||
| <code php> | <code php> | ||
| /** | /** | ||
| * POST | * POST | ||
| - | * Action for clean dataSet object | + | * Action for disconnect device to tracker |
| - | * @param ObjectId $dataSetId DataSet Id | + | |
| + | * @param ObjectId $trackerId tracker id | ||
| * @return 200 OK | * @return 200 OK | ||
| */ | */ | ||
| - | /api/v3/dataSet/cleaning | + | / |
| + | </ | ||
| + | <code php> | ||
| + | /** | ||
| + | | ||
| + | * Action send data to tracker module | ||
| + | * | ||
| + | * @param string $type string type object (location/ | ||
| + | * @param json $body json object | ||
| + | * @param ObjectId $schemeId scheme id(if type object) | ||
| + | * @return 200 Ok | ||
| + | */ | ||
| + | / | ||
| + | </ | ||
| + | <code php> | ||
| + | /** | ||
| + | * POST | ||
| + | * Сonfirmation of a user's connection to the tracker | ||
| + | * | ||
| + | * @param ObjectId $trackerId Tracker id | ||
| + | * @param ObjectId $userId User id | ||
| + | * @param int $status Device status 0/1 | ||
| + | * @return 200 OK or 400 Error | ||
| + | */ | ||
| + | / | ||
| + | </ | ||
| + | ==== DataLoader ==== | ||
| + | <code php> | ||
| + | /** | ||
| + | * POST | ||
| + | * | ||
| + | * Action for send data to DataLoader | ||
| + | * | ||
| + | * @param raw data $body Upload data | ||
| + | * @param ObjectId $dataSetId DataSet id | ||
| + | * @return 200 OK|logId | ||
| + | */ | ||
| + | | ||
| </ | </ | ||
| ==== Nodes ==== | ==== Nodes ==== | ||