Test

<back to all web services

TestDataAllCollectionTypes

The following routes are available for this service:
All Verbs/testdata/AllCollectionTypes
AllCollectionTypes Parameters:
NameParameterData TypeRequiredDescription
IntArrayformint[]No
IntListformList<int>No
StringArrayformstring[]No
StringListformList<string>No
FloatArrayformfloat[]No
DoubleListformList<double>No
ByteArrayformbyte[]No
CharArrayformChar[]No
DecimalListformList<decimal>No
PocoArrayformPoco[]No
PocoListformList<Poco>No
PocoLookupformDictionary<string, List<Poco>>No
PocoLookupMapformDictionary<string, List<Dictionary<String,Poco>>>No
Poco Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo

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

HTTP + JSV

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

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

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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