Test

<back to all web services

AllCollectionTypes

AllCollectionTypes Parameters:
NameParameterData TypeRequiredDescription
IntArrayqueryint[]No
IntListqueryList<int>No
StringArrayquerystring[]No
StringListqueryList<string>No
FloatArrayqueryfloat[]No
DoubleListqueryList<double>No
ByteArrayquerybyte[]No
CharArrayqueryChar[]No
DecimalListqueryList<decimal>No
PocoArrayqueryPoco[]No
PocoListqueryList<Poco>No
PocoLookupqueryDictionary<string, List<Poco>>No
PocoLookupMapqueryDictionary<string, List<Dictionary<String,Poco>>>No
Poco Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
AllCollectionTypes Parameters:
NameParameterData TypeRequiredDescription
IntArrayqueryint[]No
IntListqueryList<int>No
StringArrayquerystring[]No
StringListqueryList<string>No
FloatArrayqueryfloat[]No
DoubleListqueryList<double>No
ByteArrayquerybyte[]No
CharArrayqueryChar[]No
DecimalListqueryList<decimal>No
PocoArrayqueryPoco[]No
PocoListqueryList<Poco>No
PocoLookupqueryDictionary<string, List<Poco>>No
PocoLookupMapqueryDictionary<string, List<Dictionary<String,Poco>>>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/AllCollectionTypes HTTP/1.1 
Host: test.servicestack.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"intArray":[0],"intList":[0],"stringArray":["String"],"stringList":["String"],"floatArray":[0],"doubleList":[0],"byteArray":"AA==","charArray":["\u0000"],"decimalList":[0],"pocoArray":[{"name":"String"}],"pocoList":[{"name":"String"}],"pocoLookup":{"String":[{"name":"String"}]},"pocoLookupMap":{"String":[{"String":{"name":"String"}}]}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"intArray":[0],"intList":[0],"stringArray":["String"],"stringList":["String"],"floatArray":[0],"doubleList":[0],"byteArray":"AA==","charArray":["\u0000"],"decimalList":[0],"pocoArray":[{"name":"String"}],"pocoList":[{"name":"String"}],"pocoLookup":{"String":[{"name":"String"}]},"pocoLookupMap":{"String":[{"String":{"name":"String"}}]}}