POST api/clientapi/map
Request Information
URI Parameters
None.
Body Parameters
MappingDataName | Description | Type | Additional information |
---|---|---|---|
mappingId | integer |
None. |
|
mappedIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "mappingId": 1, "mappedIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<ClientApiController.MappingData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Controllers"> <mappedIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </mappedIds> <mappingId>1</mappingId> </ClientApiController.MappingData>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MapClientResponseName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "RedirectUrl": "sample string 2", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:30:11.5683312+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<MapClientResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract"> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 2</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:30:11.5683312+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <Success>true</Success> </MapClientResponse>