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

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


ru:airlay:api:air-lay-v3

Это старая версия документа!


Air Lay API v3


Раздел в процессе разработки

Структура запроса

    /**
    * api/v2/{controller}/{action}?{parameter1=value&parameter1=value&...}
    * Где
    * controller - контролер в котором производится действие,
    * action - действие контроллера,
    * parameter1, parameter2 ...  - параметры запроса,
    * value1, value2 ... - значение параметров
    */

Контроллеры

DataSet

    /**
     * POST
     * Action for edit dataSet objects.
     * @param ObjectId $dataSetId DataSet Id
     * @param string json $commit Commit in edit format
     * @return 200 Ok json/kml/dxf/gml file
     */
    /api/v3/dataSet/editor

Nodes

    /**
     * GET
     * Get nodes by filter
     * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound
     * @param ObjectId $dataSetId DataSet id. Required.
     * @param string json $bbox Bbox coordinates in json array
     * @param ObjectId $nodeId Node id
     * @return 200 array Nodes collection
     */
    /api/v3/nodes/get

Relations

    /**
     * GET
     * Get relation by filter: id, bbox, $uniqueValue.
     * Bbox [[lon, lat],[lon, lat]], first point is top left bound, second point bottom right bound
     * @param ObjectId $dataSetId DataSet id. Required.
     * @param string json $bbox Bbox coordinates in json array
     * @param ObjectId $relationId Relation id
     * @param string $uniqueValue
     * @return 200 array Nodes collection
     * @throws NavikeyException
     */
    /api/v3/relations/get

Hierarchy

    /**
     * GET
     * Get relation by filter: id, bbox, $uniqueValue.
     * @param ObjectId $dataSetId DataSet id. Required.
     * @param ObjectId $hierarchyId Hierarchy id
     * @param ObjectId $parentId
     * @param ObjectId $childId
     * @return 200 array Nodes collection
     * @throws NavikeyException
     */
    /api/v3/hierarchies/get
ru/airlay/api/air-lay-v3.1561366423.txt.gz · Последнее изменение: 2019/06/24 15:53 — Рыков Павел