POST Api/Service/Monitor/AddNFdRoute/{DataSource}

添加NFD查询信息记录

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DataSource

数据来源

string

Required

Body Parameters

数据模型

SpeedPower.Utility.Models.Service.Eterms.Service.NFD.Special
NameDescriptionTypeAdditional 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

Bodies

运价结果

Collection of SpeedPower.Utility.Models.Service.Eterms.Service.NFD.SpecialBody

Required

Request Formats

application/json, text/json

Sample:
{
  "Departure": "sample string 1",
  "Arrival": "sample string 2",
  "Date": "2024-12-24T02:57:27.6241996+08:00",
  "Currency": "sample string 4",
  "Bodies": [
    {
      "SerialNo": "sample string 1",
      "Carrier": "sample string 2",
      "ParentCode": "sample string 3",
      "CabinCode": "sample string 4",
      "FBC_TC": "sample string 5",
      "StayMin": "sample string 6",
      "StayMax": "sample string 7",
      "CodeShare": true,
      "BeforeDays": 9,
      "EndDays": 10,
      "IssueDate": "2024-12-24T02:57:27.6241996+08:00",
      "ExpiryDate": "2024-12-24T02:57:27.6241996+08:00",
      "TravelIssueDate": "2024-12-24T02:57:27.6241996+08:00",
      "TravelExpiryDate": "2024-12-24T02:57:27.6241996+08:00",
      "MON": true,
      "TUE": true,
      "WED": true,
      "THU": true,
      "FRI": true,
      "SAT": true,
      "SUN": true,
      "NFDPrices": [
        {
          "PrintPrice": 1,
          "PassengerType": 0
        },
        {
          "PrintPrice": 1,
          "PassengerType": 0
        }
      ],
      "NFDTimeSlots": [
        {
          "IssueTime": "sample string 1",
          "ExpiryTime": "sample string 2"
        },
        {
          "IssueTime": "sample string 1",
          "ExpiryTime": "sample string 2"
        }
      ],
      "NFDFlightNos": [
        {
          "IssueNo": "sample string 1",
          "ExpiryNo": "sample string 2"
        },
        {
          "IssueNo": "sample string 1",
          "ExpiryNo": "sample string 2"
        }
      ],
      "TransitFlights": [
        {
          "Sequence": 1,
          "DepartureAirport": "sample string 2",
          "ArrivalAirport": "sample string 3"
        },
        {
          "Sequence": 1,
          "DepartureAirport": "sample string 2",
          "ArrivalAirport": "sample string 3"
        }
      ]
    },
    {
      "SerialNo": "sample string 1",
      "Carrier": "sample string 2",
      "ParentCode": "sample string 3",
      "CabinCode": "sample string 4",
      "FBC_TC": "sample string 5",
      "StayMin": "sample string 6",
      "StayMax": "sample string 7",
      "CodeShare": true,
      "BeforeDays": 9,
      "EndDays": 10,
      "IssueDate": "2024-12-24T02:57:27.6241996+08:00",
      "ExpiryDate": "2024-12-24T02:57:27.6241996+08:00",
      "TravelIssueDate": "2024-12-24T02:57:27.6241996+08:00",
      "TravelExpiryDate": "2024-12-24T02:57:27.6241996+08:00",
      "MON": true,
      "TUE": true,
      "WED": true,
      "THU": true,
      "FRI": true,
      "SAT": true,
      "SUN": true,
      "NFDPrices": [
        {
          "PrintPrice": 1,
          "PassengerType": 0
        },
        {
          "PrintPrice": 1,
          "PassengerType": 0
        }
      ],
      "NFDTimeSlots": [
        {
          "IssueTime": "sample string 1",
          "ExpiryTime": "sample string 2"
        },
        {
          "IssueTime": "sample string 1",
          "ExpiryTime": "sample string 2"
        }
      ],
      "NFDFlightNos": [
        {
          "IssueNo": "sample string 1",
          "ExpiryNo": "sample string 2"
        },
        {
          "IssueNo": "sample string 1",
          "ExpiryNo": "sample string 2"
        }
      ],
      "TransitFlights": [
        {
          "Sequence": 1,
          "DepartureAirport": "sample string 2",
          "ArrivalAirport": "sample string 3"
        },
        {
          "Sequence": 1,
          "DepartureAirport": "sample string 2",
          "ArrivalAirport": "sample string 3"
        }
      ]
    }
  ]
}

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-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Currency"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].SerialNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].Carrier"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].ParentCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].CabinCode"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].FBC_TC"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].StayMin"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].StayMax"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].CodeShare"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].BeforeDays"

9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].EndDays"

10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].IssueDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].ExpiryDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TravelIssueDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TravelExpiryDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].MON"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TUE"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].WED"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].THU"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].FRI"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].SAT"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].SUN"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDPrices[0].PrintPrice"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDPrices[0].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDPrices[1].PrintPrice"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDPrices[1].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDTimeSlots[0].IssueTime"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDTimeSlots[0].ExpiryTime"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDTimeSlots[1].IssueTime"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDTimeSlots[1].ExpiryTime"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDFlightNos[0].IssueNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDFlightNos[0].ExpiryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDFlightNos[1].IssueNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].NFDFlightNos[1].ExpiryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[0].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[0].DepartureAirport"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[0].ArrivalAirport"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[1].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[1].DepartureAirport"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[0].TransitFlights[1].ArrivalAirport"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].SerialNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].Carrier"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].ParentCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].CabinCode"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].FBC_TC"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].StayMin"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].StayMax"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].CodeShare"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].BeforeDays"

9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].EndDays"

10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].IssueDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].ExpiryDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TravelIssueDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TravelExpiryDate"

2024-12-24T02:57:27.6241996+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].MON"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TUE"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].WED"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].THU"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].FRI"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].SAT"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].SUN"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDPrices[0].PrintPrice"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDPrices[0].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDPrices[1].PrintPrice"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDPrices[1].PassengerType"

CHR
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDTimeSlots[0].IssueTime"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDTimeSlots[0].ExpiryTime"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDTimeSlots[1].IssueTime"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDTimeSlots[1].ExpiryTime"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDFlightNos[0].IssueNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDFlightNos[0].ExpiryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDFlightNos[1].IssueNo"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].NFDFlightNos[1].ExpiryNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[0].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[0].DepartureAirport"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[0].ArrivalAirport"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[1].Sequence"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[1].DepartureAirport"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Bodies[1].TransitFlights[1].ArrivalAirport"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

添加NFD查询信息记录

SpeedPower.Utility.Models.Helper.ResultMessage
NameDescriptionTypeAdditional 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--