GetDataSourceItemList
≥4.5
Interface Function
Query the items of the specified List under this Application.
Request Parameter
Parameter | Type | Remarks |
---|---|---|
ListName | String | Specified dataSource |
State | int | Filter return value according to State, and return valid values by default. -1:all,0:valid,1:invalid. Argument "State" is for the items' "State", rather than list's "State". Note that the API returns empty Data if list is disabled. |
Return Parameter
List<DataSourceDetail>
public class DataSourceDetail : IExtensibleDataObject
{
private Guid DataSourceTypeId;
private string DataSourceTypeName;
private string Group;
private string GroupID;
private Guid Id;
private string Key;
private string Name;
private int Order;
private int State;
private string Value;
}
Return Sample
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": [
{
"Id": "dddb40ae-7fae-42fc-82a2-523daf9da36d",
"Key": "Dev",
"Value": "Dev",
"Name": null,
"Order": 1,
"State": 0,
"DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
"DataSourceTypeName": "Environment",
"Group": "Default",
"GroupId": "00000000-0000-0000-0000-000000000000"
},
{
"Id": "a0e98102-2ae3-4617-bd8d-5f300888d90a",
"Key": "QA",
"Value": "QA",
"Name": null,
"Order": 2,
"State": 0,
"DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
"DataSourceTypeName": "Environment",
"Group": "Default",
"GroupId": "00000000-0000-0000-0000-000000000000"
},
{
"Id": "a344b7e1-37a5-4168-95ae-4482efa14386",
"Key": "Stage",
"Value": "Stage",
"Name": null,
"Order": 3,
"State": 0,
"DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
"DataSourceTypeName": "Environment",
"Group": "Default",
"GroupId": "00000000-0000-0000-0000-000000000000"
},
{
"Id": "7a2d05fb-b133-448e-94aa-bcd063b150ed",
"Key": "Product",
"Value": "Product",
"Name": null,
"Order": 4,
"State": 1,
"DataSourceTypeId": "00000000-0000-0000-0000-000000000000",
"DataSourceTypeName": "Environment",
"Group": "Default",
"GroupId": "00000000-0000-0000-0000-000000000000"
}
]
}
Input example
{
"ListName": "status",
"State": "-1"
}