To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
GET /TypeSenseDealerSearchRequest HTTP/1.1
Host: mobileapidevsw.greysheet.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<TypeSenseSearchResponseOfDealerItemz3RKLF_Sf xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.ResponseObjects">
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<facet_counts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:FacetCount>
<d2p1:counts>
<d2p1:TypeSenseCount>
<d2p1:count>0</d2p1:count>
<d2p1:highlighted>String</d2p1:highlighted>
<d2p1:value>String</d2p1:value>
</d2p1:TypeSenseCount>
</d2p1:counts>
<d2p1:field_name>String</d2p1:field_name>
<d2p1:stats>
<d2p1:avg>0</d2p1:avg>
<d2p1:max>0</d2p1:max>
<d2p1:min>0</d2p1:min>
<d2p1:sum>0</d2p1:sum>
<d2p1:total_values>0</d2p1:total_values>
</d2p1:stats>
</d2p1:FacetCount>
</facet_counts>
<found>0</found>
<hits xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:TypeSenseHitOfDealerItemz3RKLF_Sf>
<d2p1:document>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:Id>String</d2p1:Id>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:IsFeatured>false</d2p1:IsFeatured>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:Permalink>String</d2p1:Permalink>
<d2p1:SortName>String</d2p1:SortName>
<d2p1:SortOrder>0</d2p1:SortOrder>
<d2p1:State>String</d2p1:State>
<d2p1:Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:Tags>
</d2p1:document>
</d2p1:TypeSenseHitOfDealerItemz3RKLF_Sf>
</hits>
<out_of>0</out_of>
<page>0</page>
<request_params xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.Models">
<d2p1:collection_name>String</d2p1:collection_name>
<d2p1:per_page>0</d2p1:per_page>
<d2p1:q>String</d2p1:q>
</request_params>
<search_cutoff>false</search_cutoff>
<search_time_ms>0</search_time_ms>
</TypeSenseSearchResponseOfDealerItemz3RKLF_Sf>