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

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


ru:airlay:dataloader

Различия

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

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

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
ru:airlay:dataloader [2019/06/26 15:20]
Рыков Павел [Коды ошибок]
ru:airlay:dataloader [2019/07/10 20:13]
Калинин Александр Игоревич [API отправки]
Строка 7: Строка 7:
 <code javascript> <code javascript>
 api type: POST api type: POST
-/api/v2/dataLoader/send+/api/v3/dataLoader/send
 //headers// //headers//
 Authorization: Bearer YOUR_TOKEN Authorization: Bearer YOUR_TOKEN
Строка 13: Строка 13:
 //body// //body//
 body : string(данные для отправки) body : string(данные для отправки)
 +dataSetId : string(id dataSet)
  
-//return//+//return// возвращает id лога
 Корректная отправка Корректная отправка
 { {
     "status": 200,     "status": 200,
-    "message": "OK",+    "message": "5d2*******d0c80",
     "code": 0     "code": 0
 } }
Строка 43: Строка 44:
 <code javascript> <code javascript>
 id = logId id = logId
-/api/v3/log/get+format = json 
 +/api/v3/logs/get
 { {
     "time" : "2019-06-24T05:48:57.000Z",     "time" : "2019-06-24T05:48:57.000Z",
Строка 71: Строка 73:
 ==== Коды ошибок ==== ==== Коды ошибок ====
 === Import data === === Import data ===
-  * 101 'Invalid input data' +  * 101 Invalid input data 
-  * 102 'Invalid feature' +  * 102 Invalid feature 
-  * 103 'Object not delete. Unique field not set.' +  * 103 Object not delete. Unique field not set 
-  * 104 'Object not delete. Object not found' +  * 104 Object not delete. Object not found 
-  * 105 'Coordinates must be is numeric'+  * 105 Coordinates must be is numeric
 === relation === === relation ===
   *   201 Relation properties not exists   *   201 Relation properties not exists
Строка 90: Строка 92:
   * 307 One relation member is expected for a point   * 307 One relation member is expected for a point
 === geometry === === geometry ===
 +  * 400 Invalid geometry
   * 401 Geometry type point is expected for a Point relation   * 401 Geometry type point is expected for a Point relation
-  * 402 Geometry type Point or LineString is expected for a LineString.+  * 402 Geometry type Point or LineString is expected for a LineString
   * 403 Invalid geometry, is not array   * 403 Invalid geometry, is not array
   * 404 Invalid geometry, coordinates must contain one pair/triplet of coordinates   * 404 Invalid geometry, coordinates must contain one pair/triplet of coordinates
Строка 98: Строка 101:
   * 406 Invalid geometry, the lineString must consist of 2 or more points   * 406 Invalid geometry, the lineString must consist of 2 or more points
   * 407 Invalid geometry, duplicate points in line:   * 407 Invalid geometry, duplicate points in line:
-  * 408 Invalid geometry, the polygon must consist of 4 or more points:+  * 408 Invalid geometry, the polygon must consist of 4 or more points
   * 409 Invalid geometry, the polygon is not closed   * 409 Invalid geometry, the polygon is not closed
   * 410 Polygon crosses itself   * 410 Polygon crosses itself
 +  * 411 Invalid geometry type
ru/airlay/dataloader.txt · Последнее изменение: 2021/05/17 20:59 — Лев