From a170a29f6d479941ca3535162cef78a39909762c Mon Sep 17 00:00:00 2001 From: Artem Daniliants Date: Wed, 21 Apr 2010 11:17:11 +0300 Subject: [PATCH] Updated documentation --- documents/API.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 - - + + - + -- 1.7.9.5