Betting.WebApi

<back to all web services

FindLocations

The following routes are available for this service:
GET/locations
FindLocations Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
IdsquerystringNo
QryquerystringNo
PaginatedQuery Parameters:
NameParameterData TypeRequiredDescription
CurrentPageformintNo
PageSizeformintNo
PaginatedResult<T> Parameters:
NameParameterData TypeRequiredDescription
DataformList<T>No
CurrentPageformintNo
PageSizeformintNo
TotalItemsformintNo
TotalPagesformintNo

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.

GET /locations HTTP/1.1 
Host: api.mozzart.ath.cx 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	data: 
	[
		{
			id: String,
			name: String,
			organization: 
			{
				id: String,
				value: String
			},
			group: 
			{
				id: String,
				value: String
			},
			address: 
			{
				street: String,
				city: String,
				state: String,
				zipCode: String,
				country: String,
				coordinates: 
				{
					lat: 0,
					lng: 0
				}
			},
			locale: 
			{
				timeZone: 
				{
					id: String,
					value: String
				},
				currency: 
				{
					id: String,
					value: String
				},
				language: 
				{
					id: String,
					value: String
				}
			},
			devices: 
			[
				{
					id: String,
					name: String,
					isActive: False
				}
			],
			productInstances: 
			[
				{
					id: String,
					name: String,
					product: 
					{
						id: String,
						value: String,
						category: String,
						productProvider: 
						{
							id: String,
							value: String
						}
					}
				}
			],
			integrationData: 
			{
				String: String
			}
		}
	],
	currentPage: 0,
	pageSize: 0,
	totalItems: 0,
	totalPages: 0
}