GET api/Country/All?request={request}

Загрузка списка стран

Request Information

URI Parameters

NameDescriptionTypeAdditional information
request

string

Default value is {}

Body Parameters

None.

Response Information

Resource Description

Коллекция стран

GetAllCountriesResponse
NameDescriptionTypeAdditional information
Items

Collection of Country

None.

MappedItems

Collection of Country

None.

ItemsLegend

Collection of ListItemLegend

None.

DictionaryOptions

DictionaryOptions

None.

FilterLegend

Collection of EditingLegend

None.

debugCollector

DebugCollector

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "MappingId": 1,
      "PartnerName": "sample string 1",
      "IsExternal": true,
      "CanMaped": true,
      "IsDeparture": true,
      "Id": 5,
      "Name": "sample string 6",
      "NameLat": "sample string 7",
      "Code": "sample string 8"
    },
    {
      "MappingId": 1,
      "PartnerName": "sample string 1",
      "IsExternal": true,
      "CanMaped": true,
      "IsDeparture": true,
      "Id": 5,
      "Name": "sample string 6",
      "NameLat": "sample string 7",
      "Code": "sample string 8"
    }
  ],
  "MappedItems": [
    {
      "MappingId": 1,
      "PartnerName": "sample string 1",
      "IsExternal": true,
      "CanMaped": true,
      "IsDeparture": true,
      "Id": 5,
      "Name": "sample string 6",
      "NameLat": "sample string 7",
      "Code": "sample string 8"
    },
    {
      "MappingId": 1,
      "PartnerName": "sample string 1",
      "IsExternal": true,
      "CanMaped": true,
      "IsDeparture": true,
      "Id": 5,
      "Name": "sample string 6",
      "NameLat": "sample string 7",
      "Code": "sample string 8"
    }
  ],
  "ItemsLegend": [
    {
      "ColumnIndex": 1,
      "CatalogNameField": "sample string 3",
      "CatalogIdField": "sample string 4",
      "CatalogFilter": "sample string 5",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "Name": "sample string 6",
      "FieldName": "sample string 7",
      "ArrayName": "sample string 8",
      "ArrayIndex": "sample string 9",
      "IsVisible": true,
      "CanVisible": true,
      "Type": "sample string 12",
      "MaxLength": 13,
      "IsFixed": true,
      "ColumnWidth": 15,
      "AlwaysEditable": true
    },
    {
      "ColumnIndex": 1,
      "CatalogNameField": "sample string 3",
      "CatalogIdField": "sample string 4",
      "CatalogFilter": "sample string 5",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "Name": "sample string 6",
      "FieldName": "sample string 7",
      "ArrayName": "sample string 8",
      "ArrayIndex": "sample string 9",
      "IsVisible": true,
      "CanVisible": true,
      "Type": "sample string 12",
      "MaxLength": 13,
      "IsFixed": true,
      "ColumnWidth": 15,
      "AlwaysEditable": true
    }
  ],
  "debugCollector": {
    "DebugInfo": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "RedirectUrl": "sample string 1",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-05-19T15:50:55.9030605+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Megatec.IntegrationGate.Common.DebugCollector' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Megatec.IntegrationGate.Common.DebugCollector' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.