Инструменты пользователя

Инструменты сайта


ru:airlay:api:air-lay-v3

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
ru:airlay:api:air-lay-v3 [2019/06/24 15:53]
Рыков Павел [Relations]
ru:airlay:api:air-lay-v3 [2019/07/11 12:05] (текущий)
Рыков Павел [Tracker]
Строка 1: Строка 1:
 ====== Air Lay API v3====== ====== Air Lay API v3======
-==== Navigation ====+===== Navigation =====
   * [[ru:first|Главная]]   * [[ru:first|Главная]]
   * [[ru:dsp:first|Web]]   * [[ru:dsp:first|Web]]
Строка 8: Строка 8:
  
 ---- ----
 +=====Описание=====
 Раздел в процессе разработки Раздел в процессе разработки
 ==== Структура запроса ==== ==== Структура запроса ====
Строка 26: Строка 26:
     /**     /**
      * POST      * POST
 +     
      * Action for edit dataSet objects.      * Action for edit dataSet objects.
 +     
      * @param ObjectId $dataSetId DataSet Id      * @param ObjectId $dataSetId DataSet Id
      * @param string json $commit Commit in edit format      * @param string json $commit Commit in edit format
Строка 32: Строка 34:
      */      */
     /api/v3/dataSet/editor     /api/v3/dataSet/editor
 +</code>
 +<code php>
 +    /**
 +     * POST
 +     
 +     * Action for clean dataSet object
 +     
 +     * @param ObjectId $dataSetId DataSet Id
 +     * @return 200 OK
 +     */
 +    /api/v3/dataSet/cleaning
 +</code>
 +==== Tracker ====
 +<code php>
 +    /**
 +     * POST
 +     * Action connect device to tracker
 +     
 +     * @param ObjectId $trackerId tracker id
 +     * @return 200 OK
 +     */
 +    /api/v3/tracker/connection
 +</code>
 +<code php>
 +    /**
 +     * POST
 +     * Action for disconnect device to tracker
 +     
 +     * @param ObjectId $trackerId tracker id
 +     * @return 200 OK
 +     */
 +     /api/v3/tracker/connection
 +</code>
 +<code php>
 +    /**
 +     * POST
 +     * Action send data to tracker module
 +     
 +     * @param string $type string type object (location/object)
 +     * @param json $body json object
 +     * @param ObjectId $schemeId scheme id(if type object)
 +     * @return 200 Ok
 +     */
 +     /api/v3/tracker/send
 +</code>
 +<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
 +     */
 +     /api/v3/tracker/confirmUser
 +</code>
 +==== 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
 +     */
 +    /api/v3/dataLoader/send
 </code> </code>
 ==== Nodes ==== ==== Nodes ====
Строка 37: Строка 108:
     /**     /**
      * GET      * GET
 +     
      * Get nodes by filter      * Get nodes by filter
      * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound      * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound
 +     
      * @param ObjectId $dataSetId DataSet id. Required.      * @param ObjectId $dataSetId DataSet id. Required.
      * @param string json $bbox Bbox coordinates in json array      * @param string json $bbox Bbox coordinates in json array
Строка 50: Строка 123:
     /**     /**
      * GET      * GET
 +     
      * Get relation by filter: id, bbox, $uniqueValue.      * Get relation by filter: id, bbox, $uniqueValue.
      * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound      * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound
 +     
      * @param ObjectId $dataSetId DataSet id. Required.      * @param ObjectId $dataSetId DataSet id. Required.
      * @param string json $bbox Bbox coordinates in json array      * @param string json $bbox Bbox coordinates in json array
Строка 57: Строка 132:
      * @param string $uniqueValue      * @param string $uniqueValue
      * @return 200 array Nodes collection      * @return 200 array Nodes collection
-     * @throws NavikeyException 
      */      */
     /api/v3/relations/get     /api/v3/relations/get
Строка 65: Строка 139:
     /**     /**
      * GET      * GET
 +     
      * Get relation by filter: id, bbox, $uniqueValue.      * Get relation by filter: id, bbox, $uniqueValue.
 +     
      * @param ObjectId $dataSetId DataSet id. Required.      * @param ObjectId $dataSetId DataSet id. Required.
      * @param ObjectId $hierarchyId Hierarchy id      * @param ObjectId $hierarchyId Hierarchy id
Строка 71: Строка 147:
      * @param ObjectId $childId      * @param ObjectId $childId
      * @return 200 array Nodes collection      * @return 200 array Nodes collection
-     * @throws NavikeyException 
      */      */
     /api/v3/hierarchies/get     /api/v3/hierarchies/get
 </code> </code>
ru/airlay/api/air-lay-v3.1561366423.txt.gz · Последнее изменение: 2019/06/24 15:53 — Рыков Павел