GET api/Advertisement/All/{name}?request={request}

Получение списка источников рекламы

Request Information

URI Parameters

NameDescriptionTypeAdditional information
request

string

Default value is {}

name

string

None.

Body Parameters

None.

Response Information

Resource Description

Коллекция источников рекламы

ListDictAdvertisementsResponse
NameDescriptionTypeAdditional information
Items

Collection of DictAdvertisement

None.

MappedItems

Collection of DictAdvertisement

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": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Color": "sample string 3",
      "ParentId": 1,
      "ParentName": "sample string 4",
      "MappingId": 1,
      "IsExternal": true,
      "CanMaped": true,
      "PartnerName": "sample string 7"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Color": "sample string 3",
      "ParentId": 1,
      "ParentName": "sample string 4",
      "MappingId": 1,
      "IsExternal": true,
      "CanMaped": true,
      "PartnerName": "sample string 7"
    }
  ],
  "MappedItems": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Color": "sample string 3",
      "ParentId": 1,
      "ParentName": "sample string 4",
      "MappingId": 1,
      "IsExternal": true,
      "CanMaped": true,
      "PartnerName": "sample string 7"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Color": "sample string 3",
      "ParentId": 1,
      "ParentName": "sample string 4",
      "MappingId": 1,
      "IsExternal": true,
      "CanMaped": true,
      "PartnerName": "sample string 7"
    }
  ],
  "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-11-23T16:51:20.0490532+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: The use of type 'Megatec.IntegrationGate.Common.DebugCollector' as a get-only collection is not supported with NetDataContractSerializer. Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: The use of type 'Megatec.IntegrationGate.Common.DebugCollector' as a get-only collection is not supported with NetDataContractSerializer. Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.