aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2018-01-08 13:44:57 +0100
committerNeil Williams <neil.williams@linaro.org>2018-01-08 12:58:52 +0000
commit4be662da064bc408ffed5bc0d04a4c90c389c171 (patch)
treeeca6d855272549398a28373b10640590e4b4f3ab /doc
parent7a0854ac111cc4cb9a28adbdbb1b750c3bb597eb (diff)
LAVA-1206 - Improve docs for API chunking
Add and document the testcase order by ID. Provide an API to get the total number of results in the suite, include in the docs. Document how to predict the test suite name. Change-Id: I402828fcf6abfd624f0289d31a1235c5ab9a15d1
Diffstat (limited to 'doc')
-rw-r--r--doc/v2/restapi.rsti26
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/v2/restapi.rsti b/doc/v2/restapi.rsti
index 0f4226e43..57fc3c4b4 100644
--- a/doc/v2/restapi.rsti
+++ b/doc/v2/restapi.rsti
@@ -10,11 +10,16 @@ same results for job number 123 are available in YAML format using:
If you know the test definition name, you can also download the
results for that specific test definition only in a similar way:
-``https://validation.linaro.org/results/123/singlenode-advanced/csv``
+``https://validation.linaro.org/results/123/0_singlenode-advanced/csv``
for the data in CSV format and
-``https://validation.linaro.org/results/123/singlenode-advanced/yaml``
+``https://validation.linaro.org/results/123/0_singlenode-advanced/yaml``
for the YAML format.
+Test definition names use a prefix to show the sequence within the
+test job, for each namespace. The list of test definitions within a
+test job can be retrieved using the Summary:
+ `https://validation.linaro.org/results/123/yaml_summary`
+
Some test jobs can be restricted to particular users or groups of
users. The results of these test jobs will be restricted in the same
way. To download these results, you will need to specify your username
@@ -25,7 +30,7 @@ example:
.. code-block:: shell
- $ curl 'https://validation.linaro.org/results/123/singlenode-advanced/yaml?user=user.name&token=yourtokentextgoeshereononeverylongline'
+ $ curl 'https://validation.linaro.org/results/123/0_singlenode-advanced/yaml?user=user.name&token=yourtokentextgoeshereononeverylongline'
Use the **Username** as specified in `your Profile </me>`_ - this may
differ from the username you use if logging in via LDAP.
@@ -58,6 +63,17 @@ and yaml). Example:
.. code-block:: shell
- $ curl 'https://validation.linaro.org/results/123/singlenode-advanced/yaml?limit=100&offset=200'
+ $ curl 'https://validation.linaro.org/results/123/0_singlenode-advanced/yaml?limit=100&offset=200'
+
+ $ curl 'https://validation.linaro.org/results/123/0_singlenode-advanced/yaml?user=user.name&token=yourtokentextgoeshereononeverylongline&limit=100&offset=200'
+
+To retrieve the full count of testcases in a single test suite (useful for
+pagination), you can use the testcase-count REST API method, like so:
+
+.. code-block:: shell
+
+ $ curl 'https://validation.linaro.org/results/123/0_singlenode-advanced/+testcase-count?user=user.name&token=yourtokentextgoeshereononeverylongline'
- $ curl 'https://validation.linaro.org/results/123/singlenode-advanced/yaml?user=user.name&token=yourtokentextgoeshereononeverylongline&limit=100&offset=200'
+.. note:: Test cases will be ordered by ID regardless of whether pagination is
+ used or not. This applies to downloading test cases for a particular test
+ suite only.