X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=documents%2FAPI.txt;h=60067a966c4f8e2cc27445d3af5532e549eb2ee7;hp=e29585dcc16986d050a8f30bb03814a2a9759470;hb=0874c73937c0df94961f9174a49f9f318890f2f3;hpb=8e2751b9dddac3dfb08e3016bc4efcd73404ffe8 diff --git a/documents/API.txt b/documents/API.txt index e29585d..60067a9 100644 --- a/documents/API.txt +++ b/documents/API.txt @@ -79,13 +79,16 @@ In any other case it will return 401 HTTP error code along with error descriptio Fetching results ================ -URL: /results/category_name/limit +URL: /results/category_name/limit/show_unit Category: For example "acceleration-0-100", "top-speed" and so on Limit: This will tell server how many results you want to get back. Results are ordered by record position starting with highest record first. -Both parameters are required. +category_name and limit are required parameters while show_unit is optional. show_unit can have +only one value which is true (string). When show_unit is specified every result will have a unit +attribute where by default it's km/h. Results can have up to two decimals. Dot is used as +decimal separator. Below is example of what client might get back in return when sending following request: /results/acceleration-0-100/10 @@ -93,11 +96,11 @@ request: /results/acceleration-0-100/10 - - + + - + @@ -119,6 +122,22 @@ category that result belongs to. Below is example of XML: +Sending route +============= + +URL: + +Below is example of XML: + + + + + + + + + + Logout ======