GET /wayline/api/v1/workspaces/{workspace_id}/waylines
Parameters
Name | In | Type | Required | Description |
---|
workspace_id | path | string | true | workspace id |
favorited | query | boolean | false | whether to favorite |
order_by | query | string | false | order(xxx_column desc or xxx_column asc |
page | query | integer | false | current page |
page_size | query | integer | false | page size |
template_type | query | array[integer] | false | waypoints template type collection |
x-auth-token | header | string | true | access token |
Responses
Example responses
{
"code":0,
"message":"success",
"data":{
"list":[
{
"id":"uuid",
"drone_model_key":"0-67-0",
"favorited":false,
"name":"新建航线1",
"payload_model_keys":[
"1-53-0"
],
"template_types":[
0
],
"update_time":1637158501230,
"user_name":"string"
}
],
"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
],
"update_time": 0,
"user_name": "string"
}
],
"pagination": {
"page": 0,
"page_size": 0,
"total": 0
}
},
"message": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|
code | integer | false | none | error code |
data | wayline.GetWaylinesOutputData | false | none | none |
message | string | false | none | description |
wayline.GetWaylinesOutputData
{
"list": [
{
"drone_model_key": "string",
"favorited": true,
"id": "string",
"name": "string",
"payload_model_keys": [
"string"
],
"template_types": [
0
],
"update_time": 0,
"user_name": "string"
}
],
"pagination": {
"page": 0,
"page_size": 0,
"total": 0
}
}
Properties
wayline.AppFileItem
{
"drone_model_key": "string",
"favorited": true,
"id": "string",
"name": "string",
"payload_model_keys": [
"string"
],
"template_types": [
0
],
"update_time": 0,
"user_name": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|
drone_model_key | string | false | none | drone device product enum |
favorited | boolean | false | none | whether to favorite |
id | string | false | none | waypoints file id |
name | string | false | none | waypoints file name |
payload_model_keys | [string] | false | none | payload device product enum |
template_types | [integer] | false | none | waypoints template collection |
update_time | integer | false | none | update time(millisecond) |
user_name | string | false | none | uploader |
api_render.PagyInfo
{
"page": 0,
"page_size": 0,
"total": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|
page | integer | false | none | current page |
page_size | integer | false | none | page size |
total | integer | false | none | total |