Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Karlooie edited this page Jan 30, 2015 · 12 revisions

API Version 1

Api for snowrace application

Every API request should have an auth_token params.

##Create Race

Posts races to server.

URL

POST

http://snowrace-web.herokuapp.com/api/1/races

Params

{
  "race":{
  
  "user_app_id": "123123",
  "race_result": "fadsfa dsafdsasf sd"
  }
}

Response

{
  "response": {
    "user_app_id": "bla10",
    "race_result": "dsadasdas da sjdiasd"
  }
}

Races List

Return a list of races for a specific user

URL

GET

http://snowrace-web.herokuapp.com/api/1/user/app_id/races

Response

[
  {
    "id": 9,
    "race_result": "dsadasdas da sjdiasd"
  },
  {
    "id": 10,
    "race_result": "dsadasdas da sjdiasd"
  }
]

Clone this wiki locally