GET api/tour/search/Tours
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DepartureId | integer |
None. |
|
CountryId | integer |
None. |
|
CityIds | Collection of integer |
None. |
|
TourTypeId | integer |
None. |
|
TourTypeIds | Collection of integer |
None. |
|
TourId | integer |
None. |
|
ChildrenAges | Collection of integer |
None. |
|
AdultsCount | integer |
None. |
|
FromDate | SerializedDateTime |
None. |
|
ToDate | SerializedDateTime |
None. |
|
FromDuration | integer |
None. |
|
ToDuration | integer |
None. |
|
MinPrice | decimal number |
None. |
|
MaxPrice | decimal number |
None. |
Body Parameters
None.
Response Information
Resource Description
SearchOwnToursResponseName | Description | Type | Additional information |
---|---|---|---|
Tours | Collection of OwnTourSearchInfo |
None. |
|
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Tours": [ { "Id": "sample string 1", "TourName": "sample string 2", "MinCost": 3.0, "MinDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "MinCostDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "TourTypeId": 4, "TourTypeName": "sample string 5", "CityId": 6, "CityName": "sample string 7", "CountryId": 8, "CountryName": "sample string 9", "Duration": 10, "DefaultBeginTime": 11, "OwnerLegalId": 12, "OwnerLegalName": "sample string 13", "ShortDescription": "sample string 14", "PreviewImageUrl": "sample string 15", "DaysQuota": [ { "TourId": "sample string 1", "Price": 2.0, "ActiveQuota": 3, "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" } }, { "TourId": "sample string 1", "Price": 2.0, "ActiveQuota": 3, "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" } } ], "ImagesInfo": { "ImagesUrls": [ "sample string 1", "sample string 2" ], "PreviewImageUrl": "sample string 1" }, "TourMarksInfo": [ { "Id": 1, "Name": "sample string 2", "ColorText": "sample string 3", "ColorMark": "sample string 4" }, { "Id": 1, "Name": "sample string 2", "ColorText": "sample string 3", "ColorMark": "sample string 4" } ] }, { "Id": "sample string 1", "TourName": "sample string 2", "MinCost": 3.0, "MinDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "MinCostDate": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" }, "TourTypeId": 4, "TourTypeName": "sample string 5", "CityId": 6, "CityName": "sample string 7", "CountryId": 8, "CountryName": "sample string 9", "Duration": 10, "DefaultBeginTime": 11, "OwnerLegalId": 12, "OwnerLegalName": "sample string 13", "ShortDescription": "sample string 14", "PreviewImageUrl": "sample string 15", "DaysQuota": [ { "TourId": "sample string 1", "Price": 2.0, "ActiveQuota": 3, "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" } }, { "TourId": "sample string 1", "Price": 2.0, "ActiveQuota": 3, "Date": { "Serialized": "01.01.1970", "HasValue": true, "Milliseconds": 3, "Format": "sample string 4" } } ], "ImagesInfo": { "ImagesUrls": [ "sample string 1", "sample string 2" ], "PreviewImageUrl": "sample string 1" }, "TourMarksInfo": [ { "Id": 1, "Name": "sample string 2", "ColorText": "sample string 3", "ColorMark": "sample string 4" }, { "Id": 1, "Name": "sample string 2", "ColorText": "sample string 3", "ColorMark": "sample string 4" } ] } ], "RedirectUrl": "sample string 1", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:17:00.3974911+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<SearchOwnToursResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.Tour.Models.Dto"> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 1</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:17:00.3974911+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <Tours> <OwnTourSearchInfo> <CityId>6</CityId> <CityName>sample string 7</CityName> <CountryId>8</CountryId> <CountryName>sample string 9</CountryName> <DaysQuota> <OwnTourDateInfo> <ActiveQuota>3</ActiveQuota> <Date xmlns:d6p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d6p1:_format>sample string 4</d6p1:_format> <d6p1:_serialized>01.01.1970</d6p1:_serialized> <d6p1:_value>1970-01-01T03:00:00.003+03:00</d6p1:_value> </Date> <Price>2</Price> <TourId>sample string 1</TourId> </OwnTourDateInfo> <OwnTourDateInfo> <ActiveQuota>3</ActiveQuota> <Date xmlns:d6p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d6p1:_format>sample string 4</d6p1:_format> <d6p1:_serialized>01.01.1970</d6p1:_serialized> <d6p1:_value>1970-01-01T03:00:00.003+03:00</d6p1:_value> </Date> <Price>2</Price> <TourId>sample string 1</TourId> </OwnTourDateInfo> </DaysQuota> <DefaultBeginTime>11</DefaultBeginTime> <Duration>10</Duration> <Id>sample string 1</Id> <ImagesInfo> <ImagesUrls xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ImagesUrls> <PreviewImageUrl>sample string 1</PreviewImageUrl> </ImagesInfo> <MinCost>3</MinCost> <MinCostDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </MinCostDate> <MinDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </MinDate> <OwnerLegalId>12</OwnerLegalId> <OwnerLegalName>sample string 13</OwnerLegalName> <PreviewImageUrl>sample string 15</PreviewImageUrl> <ShortDescription>sample string 14</ShortDescription> <TourMarksInfo> <TourMarkInfo> <ColorMark>sample string 4</ColorMark> <ColorText>sample string 3</ColorText> <Id>1</Id> <Name>sample string 2</Name> </TourMarkInfo> <TourMarkInfo> <ColorMark>sample string 4</ColorMark> <ColorText>sample string 3</ColorText> <Id>1</Id> <Name>sample string 2</Name> </TourMarkInfo> </TourMarksInfo> <TourName>sample string 2</TourName> <TourTypeId>4</TourTypeId> <TourTypeName>sample string 5</TourTypeName> </OwnTourSearchInfo> <OwnTourSearchInfo> <CityId>6</CityId> <CityName>sample string 7</CityName> <CountryId>8</CountryId> <CountryName>sample string 9</CountryName> <DaysQuota> <OwnTourDateInfo> <ActiveQuota>3</ActiveQuota> <Date xmlns:d6p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d6p1:_format>sample string 4</d6p1:_format> <d6p1:_serialized>01.01.1970</d6p1:_serialized> <d6p1:_value>1970-01-01T03:00:00.003+03:00</d6p1:_value> </Date> <Price>2</Price> <TourId>sample string 1</TourId> </OwnTourDateInfo> <OwnTourDateInfo> <ActiveQuota>3</ActiveQuota> <Date xmlns:d6p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d6p1:_format>sample string 4</d6p1:_format> <d6p1:_serialized>01.01.1970</d6p1:_serialized> <d6p1:_value>1970-01-01T03:00:00.003+03:00</d6p1:_value> </Date> <Price>2</Price> <TourId>sample string 1</TourId> </OwnTourDateInfo> </DaysQuota> <DefaultBeginTime>11</DefaultBeginTime> <Duration>10</Duration> <Id>sample string 1</Id> <ImagesInfo> <ImagesUrls xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ImagesUrls> <PreviewImageUrl>sample string 1</PreviewImageUrl> </ImagesInfo> <MinCost>3</MinCost> <MinCostDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </MinCostDate> <MinDate xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <d4p1:_format>sample string 4</d4p1:_format> <d4p1:_serialized>01.01.1970</d4p1:_serialized> <d4p1:_value>1970-01-01T03:00:00.003+03:00</d4p1:_value> </MinDate> <OwnerLegalId>12</OwnerLegalId> <OwnerLegalName>sample string 13</OwnerLegalName> <PreviewImageUrl>sample string 15</PreviewImageUrl> <ShortDescription>sample string 14</ShortDescription> <TourMarksInfo> <TourMarkInfo> <ColorMark>sample string 4</ColorMark> <ColorText>sample string 3</ColorText> <Id>1</Id> <Name>sample string 2</Name> </TourMarkInfo> <TourMarkInfo> <ColorMark>sample string 4</ColorMark> <ColorText>sample string 3</ColorText> <Id>1</Id> <Name>sample string 2</Name> </TourMarkInfo> </TourMarksInfo> <TourName>sample string 2</TourName> <TourTypeId>4</TourTypeId> <TourTypeName>sample string 5</TourTypeName> </OwnTourSearchInfo> </Tours> </SearchOwnToursResponse>