Club REST Services

Club information is returned in one of two formats, depending on the request URI:

You can also also get fixtures and tables for a club using the following URIs:

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

See the fixtures page and the tables page for more details.

List Format

Request

URI: http://www.southlacrosse.org.uk/rest/clubs[/type]

type is optional, but if supplied must be mens or womens.

If type is not specified then a list of all clubs is returned, otherwise the list is limited to clubs with either men's or women's sections. Note: some clubs have both men's and womens's, so will always be returned.

Response Sample

Request URI: http://www.southlacrosse.org.uk/rest/clubs

Response data (edited for brevity):

<?xml version="1.0" encoding="UTF-8"?>
<clubs>
  <club id="aberystwyth" href="http://www.southlacrosse.org.uk/rest/clubs/aberystwyth">
    <name>Aberystwyth University</name>
    <description>Men's</description>
    <website>http://www.aberlacrosse.netfirms.com/</website>
    <url type="mens">http://www.southlacrosse.org.uk/clubs/aberystwyth.html</url>
    <map>http://maps.google.co.uk/?q=52.412402,-4.072993(Aberystwyth+University+Lacrosse+Club)</map>
  </club>
  <club id="bath" href="http://www.southlacrosse.org.uk/rest/clubs/bath">
    <name>Bath</name>
    <description>Men's</description>
    <website>http://www.bathlacrosse.com/</website>
    <url type="mens">http://www.southlacrosse.org.uk/clubs/bath.html</url>
    <map>http://maps.google.co.uk/?q=51.383538,-2.354017(Bath+Lacrosse+Club)</map>
  </club>
...
  <club id="blackheath" href="http://www.southlacrosse.org.uk/rest/clubs/blackheath">
    <name>Blackheath</name>
    <description>Women's</description>
    <website>http://www.blackheathlacrosse.co.uk/</website>
    <url type="womens">http://www.southlacrosse.org.uk/womens/clubs/blackheath.html</url>
    <map>http://maps.google.co.uk/?q=51.53128,-0.15854(Blackheath+Lacrosse+Club)</map>
  </club>
...
  <club id="hitchin" href="http://www.southlacrosse.org.uk/rest/clubs/hitchin">
    <name>Hitchin</name>
    <description>Men's and Women's</description>
    <website>http://www.hitchinlacrosse.com/</website>
    <url type="mens">http://www.southlacrosse.org.uk/clubs/hitchin.html</url>
    <url type="womens">http://www.southlacrosse.org.uk/womens/clubs/hitchin.html</url>
    <map>http://maps.google.co.uk/?q=51.950611,-0.291160(Hitchin+Lacrosse+Club)</map>
  </club>
...
</clubs>
  • The club href attribute specifies the URL to be used to obtain detailed information about the club. See below for more details.
  • The url fields are URLs of the club's web pages at this site.

Detailed Format

Request

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

club-id is required (see allowed values).

Response Sample

Request URI: http://www.southlacrosse.org.uk/rest/clubs/hitchin

Response data:

<?xml version="1.0" encoding="UTF-8"?>
<club id="hitchin" modified="2010-09-20" founded="1980">
  <name>Hitchin</name>
  <website>http://www.hitchinlacrosse.com/</website>
  <ground lat="51.950611" long="-0.291160" osx="517538" osy="229392">
    <map>http://maps.google.co.uk/?q=51.950611,-0.291160(Hitchin+Lacrosse+Club)</map>
    <address>
      <street>Blueharts Hockey Club</street>
      <street>Lucas Lane</street>
      <locality>Hitchin</locality>
      <region>Hertfordshire</region>
      <postcode>SG5 2JA</postcode>
    </address>
    <directions><![CDATA[
      <b>From A1(M)</b> exit Jct 8 onto A602 into Hitchin. Follow directions for one-way system below.
      <br/>
      <b>From M1 North</b> exit Jct 12 (signposted Flitwick and Ampthill). Follow the A5120 for a short distance
      towards Ampthill; take the second right signposted Harlington and Barton. After about 2 miles you come to
      a T-junction. Turn left towards Barton le Clay and Hitchin. At Barton village, follow the signs to Hitchin
      - you have to turn right at the mini-roundabout and then left onto the B655, signposted to Hitchin.  Follow
      directions for one-way system below.
      <br/>
      <b>From M1 South</b> exit Jct 10, follow the A1081/A505 all the way round Luton to Hitchin. Follow 
      directions for one-way system below.
      <br/>
      <b>From Hitchin one-way system</b> Follow signs for Bedford round the town's main one-way system and when
      you reach the traffic lights by the large expanse of grass (known as Butts Close) take a left up Oughton Head
      Way. Take 2nd left up Bedford Street and then follow the road all the way up the hill until you reach iron
      gates. Go ahead thought the gates and over the sleeping policeman to find the clubhouse and car park.
      ]]></directions>
  </ground>
  <section type="mens" href="http://www.southlacrosse.org.uk/clubs/hitchin.html">
    <team division="Prem">
      <name>Hitchin</name>
    </team>
    <team division="East3">
      <name>Hitchin A</name>
    </team>
  </section>
  <section type="womens" region="East" href="http://www.southlacrosse.org.uk/womens/clubs/hitchin.html">
    <team division="D1">
      <name>Hitchin Sprites</name>
    </team>
    <team division="Rosebowl">
      <name>Hitchin Sprites</name>
    </team>
  </section>
</club>
  • Clubs may have more than one ground.
  • Each ground has the following fields: address, tel (optional), note (optional), and directions.
  • Each address has the following fields: street (optional, multiple), locality (optional), region (optional), and postcode (optional).
  • Ground directions and note contain HTML markup, contained in a CDATA section.
  • The section href attributes are URLs of the club's web pages at this site.