Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Int | query | int | No | |
NullableId | query | int? | No | |
Long | query | long | No | |
Double | query | double | No | |
String | query | string | Yes | |
DateTime | query | DateTime | No | |
IntArray | query | int[] | No | |
IntList | query | List<int> | No | |
StringArray | query | string[] | No | |
StringList | query | List<string> | No | |
PocoArray | query | Poco[] | No | |
PocoList | query | List<Poco> | No | |
NullableByteArray | query | byte?[] | No | |
NullableByteList | query | List<Nullable<Byte>> | No | |
NullableDateTimeArray | query | DateTime?[] | No | |
NullableDateTimeList | query | List<Nullable<DateTime>> | No | |
PocoLookup | query | Dictionary<string, List<Poco>> | No | |
PocoLookupMap | query | Dictionary<string, List<Dictionary<String,Poco>>> | No | |
MapList | query | Dictionary<string, List<String>> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Int | query | int | No | |
NullableId | query | int? | No | |
Long | query | long | No | |
Double | query | double | No | |
String | query | string | Yes | |
DateTime | query | DateTime | No | |
IntArray | query | int[] | No | |
IntList | query | List<int> | No | |
StringArray | query | string[] | No | |
StringList | query | List<string> | No | |
PocoArray | query | Poco[] | No | |
PocoList | query | List<Poco> | No | |
NullableByteArray | query | byte?[] | No | |
NullableByteList | query | List<Nullable<Byte>> | No | |
NullableDateTimeArray | query | DateTime?[] | No | |
NullableDateTimeList | query | List<Nullable<DateTime>> | No | |
PocoLookup | query | Dictionary<string, List<Poco>> | No | |
PocoLookupMap | query | Dictionary<string, List<Dictionary<String,Poco>>> | No | |
MapList | query | Dictionary<string, List<String>> | No |
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/TestUploadWithDto HTTP/1.1
Host: test.servicestack.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"int":0,"nullableId":0,"long":0,"double":0,"string":"String","dateTime":"\/Date(-62135596800000-0000)\/","intArray":[0],"intList":[0],"stringArray":["String"],"stringList":["String"],"pocoArray":[{"name":"String"}],"pocoList":[{"name":"String"}],"nullableByteArray":[0],"nullableByteList":[0],"nullableDateTimeArray":["\/Date(-62135596800000-0000)\/"],"nullableDateTimeList":["\/Date(-62135596800000-0000)\/"],"pocoLookup":{"String":[{"name":"String"}]},"pocoLookupMap":{"String":[{"String":{"name":"String"}}]},"mapList":{"String":["String"]}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"int":0,"nullableId":0,"long":0,"double":0,"string":"String","dateTime":"\/Date(-62135596800000-0000)\/","intArray":[0],"intList":[0],"stringArray":["String"],"stringList":["String"],"pocoArray":[{"name":"String"}],"pocoList":[{"name":"String"}],"nullableByteArray":[0],"nullableByteList":[0],"nullableDateTimeArray":["\/Date(-62135596800000-0000)\/"],"nullableDateTimeList":["\/Date(-62135596800000-0000)\/"],"pocoLookup":{"String":[{"name":"String"}]},"pocoLookupMap":{"String":[{"String":{"name":"String"}}]},"mapList":{"String":["String"]}}