POST api/flight/cre/{lang}

根据国家获取证件类型

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

Body Parameters

GetCountCreCodesContract
NameDescriptionTypeAdditional information
CountryCode

string

None.

GdsType

string

None.

Carrier

string

None.

FromCity

string

None.

FromCityType

string

None.

ToCity

string

None.

ToCityType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryCode": "sample string 1",
  "GdsType": "sample string 2",
  "Carrier": "sample string 3",
  "FromCity": "sample string 4",
  "FromCityType": "sample string 5",
  "ToCity": "sample string 6",
  "ToCityType": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetCountCreCodesContract'.

Response Information

Resource Description

根据国家获取证件类型

ReturnResultOfListOfCountCreContract
NameDescriptionTypeAdditional information
data

Collection of CountCreContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "CountryCode": "sample string 1",
      "MyProperty": 2,
      "CreCode": "sample string 3",
      "Lang": "sample string 4",
      "Name": "sample string 5",
      "DisplayOrder": 6,
      "CreateTime": "2025-04-24T16:47:31.5987504+08:00",
      "EditTime": "2025-04-24T16:47:31.5987504+08:00"
    },
    {
      "CountryCode": "sample string 1",
      "MyProperty": 2,
      "CreCode": "sample string 3",
      "Lang": "sample string 4",
      "Name": "sample string 5",
      "DisplayOrder": 6,
      "CreateTime": "2025-04-24T16:47:31.5987504+08:00",
      "EditTime": "2025-04-24T16:47:31.5987504+08:00"
    }
  ],
  "code": 1,
  "message": "sample string 2"
}