GET Api/Service/Setting/GetQueryDataProviders/{Carrier}
基于航空公司2字码获取所有适用报价数据源列表
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Carrier |
航空公司2字码 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
基于航空公司2字码获取所有适用报价数据源列表
Collection of SpeedPower.Utility.Models.Project.Agents.Service.Setting.ParentDataProviderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderProviders |
订单数据源代表 |
Collection of SpeedPower.Utility.Models.Project.Agents.Service.Setting.ParentOrderProviderModel |
None. |
| QueryProviders |
查询数据源列表 |
Collection of SpeedPower.Utility.Models.Project.Agents.Service.Setting.GetQueryProviderModel |
None. |
| ProviderCode |
数据源主代码 |
string |
Required String length: inclusive between 0 and 20 |
| AllowCarriers |
适用航司列表(CA,MU)或者(*)代表所有 |
string |
Required String length: inclusive between 0 and 150 |
| ForbidCodes |
不适用渠道代码(QUNAR,CTRIP,...) |
string |
Required String length: inclusive between 0 and 500 |
| Remark |
备注内容 |
string |
Required String length: inclusive between 0 and 500 |
Response Formats
application/json, text/json
Sample:
[
{
"OrderProviders": [
{
"OrderProviderExpands": [
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
},
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
}
],
"OrderProviderType": 0,
"Remark": "sample string 1"
},
{
"OrderProviderExpands": [
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
},
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
}
],
"OrderProviderType": 0,
"Remark": "sample string 1"
}
],
"QueryProviders": [
{
"Shared": true,
"Remark": "sample string 2"
},
{
"Shared": true,
"Remark": "sample string 2"
}
],
"ProviderCode": "sample string 1",
"AllowCarriers": "sample string 2",
"ForbidCodes": "sample string 3",
"Remark": "sample string 4"
},
{
"OrderProviders": [
{
"OrderProviderExpands": [
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
},
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
}
],
"OrderProviderType": 0,
"Remark": "sample string 1"
},
{
"OrderProviderExpands": [
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
},
{
"SettingKey": "sample string 1",
"SettingValue": "sample string 2"
}
],
"OrderProviderType": 0,
"Remark": "sample string 1"
}
],
"QueryProviders": [
{
"Shared": true,
"Remark": "sample string 2"
},
{
"Shared": true,
"Remark": "sample string 2"
}
],
"ProviderCode": "sample string 1",
"AllowCarriers": "sample string 2",
"ForbidCodes": "sample string 3",
"Remark": "sample string 4"
}
]