Test

<back to all web services

AllCollectionTypes

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

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 /jsv/reply/AllCollectionTypes HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsv
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
				}
			}
		]
	}
}
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
				}
			}
		]
	}
}