From: Artem Daniliants Date: Wed, 21 Apr 2010 08:17:11 +0000 (+0300) Subject: Updated documentation X-Git-Tag: help~8 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=a170a29f6d479941ca3535162cef78a39909762c Updated documentation --- diff --git a/documents/API.txt b/documents/API.txt index cf28452..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 - - + + - +