Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IntArray | query | int[] | Yes | |
IntList | query | List<int> | Yes | |
StringArray | query | string[] | Yes | |
StringList | query | List<string> | Yes | |
FloatArray | query | float[] | Yes | |
DoubleList | query | List<double> | Yes | |
ByteArray | query | byte[] | Yes | |
CharArray | query | Char[] | Yes | |
DecimalList | query | List<decimal> | Yes | |
PocoArray | query | Poco[] | Yes | |
PocoList | query | List<Poco> | Yes | |
PocoLookup | query | Dictionary<string, List<Poco>> | Yes | |
PocoLookupMap | query | Dictionary<string, List<Dictionary<String,Poco>>> | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IntArray | query | int[] | Yes | |
IntList | query | List<int> | Yes | |
StringArray | query | string[] | Yes | |
StringList | query | List<string> | Yes | |
FloatArray | query | float[] | Yes | |
DoubleList | query | List<double> | Yes | |
ByteArray | query | byte[] | Yes | |
CharArray | query | Char[] | Yes | |
DecimalList | query | List<decimal> | Yes | |
PocoArray | query | Poco[] | Yes | |
PocoList | query | List<Poco> | Yes | |
PocoLookup | query | Dictionary<string, List<Poco>> | Yes | |
PocoLookupMap | query | Dictionary<string, List<Dictionary<String,Poco>>> | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/AllCollectionTypes HTTP/1.1
Host: test.servicestack.net
Accept: application/json
Content-Type: application/json
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: application/json 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"}}]}}