Fetch Contest Leaderboard

From ePrize Developers Wiki

Revision as of 21:15, 29 July 2010 by Todd-chapman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
$ curl -i -X GET -H "Accept: text/xml" \
  "http://test.url.eprize.com/v1/solution/contestv2/contest/most-popular"

HTTP 200 OK
Date: Thu, 29 Jul 2010 21:13:30 GMT
Server: Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.8
cache-control: public
expires: Thu, 29 Jul 2010 21:18:30 GMT
content-length: 1189
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version='1.0' standalone='yes'?>
<result>
  <entry>
    <id>5</id>
    <body>this is the body of my essay</body>
    <category_id>2</category_id>
    <created>2010-07-29 17:12:16</created>
    <description></description>
    <last_updated>2010-07-29 17:12:16</last_updated>
    <profile_id>4</profile_id>
    <random>65878</random>
    <rank>1</rank>
    <rating>6.000</rating>
    <rating_ave>3.000</rating_ave>
    <rating_count>2</rating_count>
    <state>approved</state>
    <title>a missive on soap</title>
    <type>ESSAY</type>
    <views>4</views>
    <votes>0</votes>
  </entry>
  <entry>
    <id>6</id>
    <body>this is the body of my essay</body>
    <category_id>2</category_id>
    <created>2010-07-29 16:25:56</created>
    <description></description>
    <last_updated>2010-07-29 17:07:32</last_updated>
    <profile_id>3</profile_id>
    <random>3743195157</random>
    <rank>2</rank>
    <rating>5.000</rating>
    <rating_ave>5.000</rating_ave>
    <rating_count>1</rating_count>
    <state>approved</state>
    <title>an ode to restful interfaces</title>
    <type>ESSAY</type>
    <views>6</views>
    <votes>0</votes>
  </entry>
  <status>1</status>
</result>
Personal tools