POST Api/Service/Monitor/AddFdRoute/{DataSource}
添加FD查询信息记录
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataSource |
数据来源 |
string |
Required |
Body Parameters
数据模型
SpeedPower.Utility.Models.Service.Eterms.Service.FD.FreightName | Description | Type | Additional information |
---|---|---|---|
Departure |
出发地 |
string |
Required String length: inclusive between 0 and 3 |
Arrival |
到达地 |
string |
Required String length: inclusive between 0 and 3 |
Date |
出发日期 |
date |
None. |
Currency |
货币 |
string |
String length: inclusive between 0 and 3 |
Distance |
公里数 |
integer |
None. |
Bodies |
运价列表 |
Collection of SpeedPower.Utility.Models.Service.Eterms.Service.FD.FreightBody |
Required |
Request Formats
application/json, text/json
Sample:
{ "Departure": "sample string 1", "Arrival": "sample string 2", "Date": "2024-12-24T03:11:29.0808404+08:00", "Currency": "sample string 4", "Distance": 5, "Bodies": [ { "Carrier": "sample string 1", "CabinCode": "sample string 2", "ParentCode": "sample string 3", "PrintPrice": 4, "CabinLevel": 0, "IssueDate": "2024-12-24T03:11:29.0808404+08:00", "ExpiryDate": "2024-12-24T03:11:29.0808404+08:00", "Notes": "sample string 7" }, { "Carrier": "sample string 1", "CabinCode": "sample string 2", "ParentCode": "sample string 3", "PrintPrice": 4, "CabinLevel": 0, "IssueDate": "2024-12-24T03:11:29.0808404+08:00", "ExpiryDate": "2024-12-24T03:11:29.0808404+08:00", "Notes": "sample string 7" } ] }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Departure" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Arrival" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2024-12-24T03:11:29.0808404+08:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Currency" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Distance" 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].Carrier" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].CabinCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].ParentCode" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].PrintPrice" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].CabinLevel" F --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].IssueDate" 2024-12-24T03:11:29.0808404+08:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].ExpiryDate" 2024-12-24T03:11:29.0808404+08:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[0].Notes" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].Carrier" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].CabinCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].ParentCode" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].PrintPrice" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].CabinLevel" F --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].IssueDate" 2024-12-24T03:11:29.0808404+08:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].ExpiryDate" 2024-12-24T03:11:29.0808404+08:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Bodies[1].Notes" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
添加FD查询信息记录
SpeedPower.Utility.Models.Helper.ResultMessageName | Description | Type | Additional information |
---|---|---|---|
Succeed |
操作是否成功 |
boolean |
None. |
Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Succeed": true, "Message": "sample string 2" }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Succeed" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Message" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--