Appearance
Query Tree File List API
API Information
- Request Path:
/processtask/query/file/bandInfo - Request Method:
GET - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Parameters
| Parameter | Type | Required | Description | Constraints |
|---|---|---|---|---|
| datafileId | Long | Yes | Data File Id | not empty |
Parameter Example
/processtask/query/file/bandInfo?datafileId=12345Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | DataFileBandQueryResp | data |
DataFileTreeResp Structure
| Field | Type | Description |
|---|---|---|
| bandInfos | List<BandInfo> | band list |
BandInfo Structure
| Field | Type | Description |
|---|---|---|
| id | Long | band id |
| name | String | band name |
Response Examples
Success Response
json
{
"code": 200,
"message": "OK",
"data": {
"bandInfos": [
{
"id": 589,
"name": "Band 1"
}
]
}
}Failure Response
json
{
"code": 400,
"message": "Invalid request parameters",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 500 | Server internal error |
Usage Instructions
- This API is used to query band info