diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-06-20 17:40:38 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-06-20 17:45:42 +0800 |
commit | b87da1f862c1966dba0c60cb5368b86bb698104e (patch) | |
tree | 5254e00c8185233327c688c6539b196ac5bd87f5 /testapi/etc | |
parent | c9cb0fd7d6b7f3736f94b0eebb517f248b8e670e (diff) |
support pagination in TestAPI
In this patch, pagination is supported, so you can go through results
leveraging: http://testresults.opnfv.org/test/api/v1/results?page=2
Change-Id: Ibe31c787643f27dbb06c4899e713b3c8e716e784
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/etc')
-rw-r--r-- | testapi/etc/config.ini | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testapi/etc/config.ini b/testapi/etc/config.ini index 692e488..cf46bf7 100644 --- a/testapi/etc/config.ini +++ b/testapi/etc/config.ini @@ -10,6 +10,10 @@ dbname = test_results_collection # Listening port url = http://localhost:8000/api/v1 port = 8000 + +# Number of results for one page (integer value) +#results_per_page = 20 + # With debug_on set to true, error traces will be shown in HTTP responses debug = True authenticate = False |