Tables REST Services

Request

Format 1 - Tables for a club

URI: http://www.southlacrosse.org.uk/rest/clubs/{club-id}/tables

club-id is required (see allowed values).

Note: if a clubs has both men's and women's sections then each division will be marked with type="mens" or type="womens", and the division names will be prefixed 'SEMLA' or 'SCWLA'.

Format 2 - Tables for a type or division

URI: http://www.southlacrosse.org.uk/rest/tables/{type}[/division]

type is required, and must be mens or womens.

division is optional (see allowed values), and if omitted then all tables will be returned. See also Divisions REST Services to obtain data about the divisions.

Response Sample

Request URI: http://www.southlacrosse.org.uk/rest/tables/mens/Prem

Response data (edited for brevity):

<?xml version="1.0" encoding="UTF-8"?>
<league-tables>
  <date>16-Dec-2007</date>
  <division>
    <division-name short="Prem">Premier Division</division-name>
    <team>
      <team-name>Hampstead</team-name>
      <won>7</won>
      <drawn>0</drawn>
      <lost>0</lost>
      <points>21</points>
      <for>97</for>
      <against>47</against>
    </team>
    <team>
      <team-name>Purley</team-name>
      <won>6</won>
      <drawn>0</drawn>
      <lost>2</lost>
      <points>20</points>
      <for>103</for>
      <against>45</against>
    </team>
    ...(more teams)
  </division>
</league-tables>

The date field is optional, and is not guaranteed to be a formatted date value (e.g. it may contain 'FINAL').