aboutsummaryrefslogtreecommitdiff
path: root/doc/intro.rst
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-08-08 17:38:09 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-08-08 17:38:09 +0200
commit7e147008dc4640f7a356e607799d46adb834023c (patch)
tree560b313100ba2022bea3b592e77a7bdfab1f25af /doc/intro.rst
parentc36178336a78b46351e4be32224983b4b6e5f277 (diff)
More doc updates.
Change-Id: I22a8e8dd684bfb022337b5ee6abbc85e53660810
Diffstat (limited to 'doc/intro.rst')
-rw-r--r--doc/intro.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/intro.rst b/doc/intro.rst
index d1fc579..211fa0b 100644
--- a/doc/intro.rst
+++ b/doc/intro.rst
@@ -99,18 +99,19 @@ A timestamp will be encoded as follows: ::
Internally, timestamps are stored in `BSON <http://bsonspec.org/>`_ format.
-When using the ``created_on`` parameter in a query, it does not accept a date, but a range of days:
+When using the ``date_range`` parameter in a query:
.. sourcecode:: http
GET /job?date_range=5 HTTP/1.1
The number indicates how many days of data to consider starting from today's
-date at ``00:00 UTC``. Internally it will be converted in a timedelta structure: ::
+date at ``23:59 UTC`` to ``00:00 UTC`` of the range date. Internally it will be converted in a timedelta structure using the ``created_on`` field: ::
- {"created_on": {
- "$lt": {"$date": 1407542399000},
- "$gte": {"$date": 1407369600000}
+ {
+ "created_on": {
+ "$lt": {"$date": 1407542399000},
+ "$gte": {"$date": 1407369600000}
}
}
@@ -134,4 +135,4 @@ Basic Authentication
::
- curl -H 'Authorization: token' https://api.backend.linaro.org
+ curl -H 'Authorization: token' https://api.backend.linaro.org/job