Test

<back to all web services

TestUploadWithDto

TestUploadWithDto Parameters:
NameParameterData TypeRequiredDescription
IntqueryintNo
NullableIdqueryint?No
LongquerylongNo
DoublequerydoubleNo
StringquerystringYes
DateTimequeryDateTimeNo
IntArrayqueryint[]No
IntListqueryList<int>No
StringArrayquerystring[]No
StringListqueryList<string>No
PocoArrayqueryPoco[]No
PocoListqueryList<Poco>No
NullableByteArrayquerybyte?[]No
NullableByteListqueryList<Nullable<Byte>>No
NullableDateTimeArrayqueryDateTime?[]No
NullableDateTimeListqueryList<Nullable<DateTime>>No
PocoLookupqueryDictionary<string, List<Poco>>No
PocoLookupMapqueryDictionary<string, List<Dictionary<String,Poco>>>No
MapListqueryDictionary<string, List<String>>No
Poco Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
TestUploadWithDto Parameters:
NameParameterData TypeRequiredDescription
IntqueryintNo
NullableIdqueryint?No
LongquerylongNo
DoublequerydoubleNo
StringquerystringYes
DateTimequeryDateTimeNo
IntArrayqueryint[]No
IntListqueryList<int>No
StringArrayquerystring[]No
StringListqueryList<string>No
PocoArrayqueryPoco[]No
PocoListqueryList<Poco>No
NullableByteArrayquerybyte?[]No
NullableByteListqueryList<Nullable<Byte>>No
NullableDateTimeArrayqueryDateTime?[]No
NullableDateTimeListqueryList<Nullable<DateTime>>No
PocoLookupqueryDictionary<string, List<Poco>>No
PocoLookupMapqueryDictionary<string, List<Dictionary<String,Poco>>>No
MapListqueryDictionary<string, List<String>>No

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/TestUploadWithDto HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	int: 0,
	nullableId: 0,
	long: 0,
	double: 0,
	string: String,
	dateTime: 0001-01-01,
	intArray: 
	[
		0
	],
	intList: 
	[
		0
	],
	stringArray: 
	[
		String
	],
	stringList: 
	[
		String
	],
	pocoArray: 
	[
		{
			name: String
		}
	],
	pocoList: 
	[
		{
			name: String
		}
	],
	nullableByteArray: 
	[
		0
	],
	nullableByteList: 
	[
		0
	],
	nullableDateTimeArray: 
	[
		0001-01-01
	],
	nullableDateTimeList: 
	[
		0001-01-01
	],
	pocoLookup: 
	{
		String: 
		[
			{
				name: String
			}
		]
	},
	pocoLookupMap: 
	{
		String: 
		[
			{
				String: 
				{
					name: String
				}
			}
		]
	},
	mapList: 
	{
		String: 
		[
			String
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	int: 0,
	nullableId: 0,
	long: 0,
	double: 0,
	string: String,
	dateTime: 0001-01-01,
	intArray: 
	[
		0
	],
	intList: 
	[
		0
	],
	stringArray: 
	[
		String
	],
	stringList: 
	[
		String
	],
	pocoArray: 
	[
		{
			name: String
		}
	],
	pocoList: 
	[
		{
			name: String
		}
	],
	nullableByteArray: 
	[
		0
	],
	nullableByteList: 
	[
		0
	],
	nullableDateTimeArray: 
	[
		0001-01-01
	],
	nullableDateTimeList: 
	[
		0001-01-01
	],
	pocoLookup: 
	{
		String: 
		[
			{
				name: String
			}
		]
	},
	pocoLookupMap: 
	{
		String: 
		[
			{
				String: 
				{
					name: String
				}
			}
		]
	},
	mapList: 
	{
		String: 
		[
			String
		]
	}
}