Obtain Wayline List

2024-09-09
No Rating

GET /wayline/api/v1/workspaces/{workspace_id}/waylines

Parameters

NameInTypeRequiredDescription
workspace_idpathstringtrueworkspace id
favoritedquerybooleanfalsewhether to favorite
order_byquerystringfalseorder (xxx_column desc or xxx_column asc
pagequeryintegerfalsecurrent page
page_sizequeryintegerfalsepage size
template_typequeryarray[integer]falsewaypoints template type collection
x-auth-tokenheaderstringtrueaccess token
action_typequeryintegerfalse1: Enable AI Spot-Check wayline. Without this field means all waylines.
drone_model_keysqueryarray[string]falseSelected aircraft models
payload_model_keyqueryarray[string]falseSelected payload models

Responses

StatusMeaningDescriptionSchema
200OKopen in new windowOKwayline.GetWaylinesOutput

Example responses

{
    "code":0,
    "message":"success",
    "data":{
        "list":[
            {
                "id":"uuid",
                "drone_model_key":"0-67-0",
                "favorited":false,
                "name":"New wayline 1",
                "payload_model_keys":[
                    "1-53-0"
                ],
                "template_types":[
                    0
                ],
                "action_type": 0,
                "update_time":1637158501230,
                "user_name":"string",
                "start_wayline_point": {
                  "start_latitude": 22.5799601837589,
                  "start_lontitude": 113.942744030171
                  }
            }
        ],
        "pagination":{
            "page":1,
            "page_size":9,
            "total":10
        }
    }
}

Schemas

wayline.GetWaylinesOutput

{
  "code": 0,
  "data": {
    "list": [
      {
        "drone_model_key": "string",
        "favorited": true,
        "id": "string",
        "name": "string",
        "payload_model_keys": [
          "string"
        ],
        "template_types": [
          0
        ],
        "action_type": 0,
        "update_time": 0,
        "user_name": "string",
        "start_wayline_point": {
          "start_latitude": 22.5799601837589,
          "start_lontitude": 113.942744030171
          }
      }
    ],
    "pagination": {
      "page": 0,
      "page_size": 0,
      "total": 0
    }
  },
  "message": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
codeintegerfalsenoneerror code
datawayline.GetWaylinesOutputDatafalsenonenone
messagestringfalsenonedescription

wayline.GetWaylinesOutputData

{
  "list": [
    {
      "drone_model_key": "string",
      "favorited": true,
      "id": "string",
      "name": "string",
      "payload_model_keys": [
        "string"
      ],
      "template_types": [
        0
      ],
      "action_type": 0,
      "update_time": 0,
      "user_name": "string",
      "start_wayline_point": {
          "start_latitude": 22.5799601837589,
          "start_lontitude": 113.942744030171
          }
    }
  ],
  "pagination": {
    "page": 0,
    "page_size": 0,
    "total": 0
  }
}

Properties

NameTypeRequiredRestrictionsDescription
list[wayline.AppFileItem]falsenonenone
paginationapi_render.PagyInfofalsenonenone

wayline.AppFileItem

{
  "drone_model_key": "string",
  "favorited": true,
  "id": "string",
  "name": "string",
  "payload_model_keys": [
    "string"
  ],
  "template_types": [
    0
  ],
  "action_type": 0,
  "update_time": 0,
  "user_name": "string",
  "start_wayline_point": {
    "start_latitude": 22.5799601837589,
    "start_lontitude": 113.942744030171
    }
}

Properties

NameTypeRequiredRestrictionsDescription
drone_model_keystringfalsenonedrone device product enum
favoritedbooleanfalsenonewhether to favorite
idstringfalsenonewaypoints file id
namestringfalsenonewaypoints file name
payload_model_keys[string]falsenonepayload device product enum
template_types[integer]falsenonewaypoints template collection
update_timeintegerfalsenoneupdate time (millisecond)
user_namestringfalsenoneuploader
start_wayline_pointarray[float]falsenoneStart point of wayline
start_latitudefloatfalsenoneLatitude of wayline start point
start_lontitudefloatfalsenoneLongitude of wayline start point

api_render.PagyInfo

{
  "page": 0,
  "page_size": 0,
  "total": 0
}

Properties

NameTypeRequiredRestrictionsDescription
pageintegerfalsenonecurrent page
page_sizeintegerfalsenonepage size
totalintegerfalsenonetotal
If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.