diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2021-10-14 09:48:17 +0200 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2021-10-14 09:48:17 +0200 |
commit | 583542443adb2d66208dacb71581bc2936c59201 (patch) | |
tree | 30d6cd714e1ae5058303c46fef901054d8d5334a /README.md | |
parent | c3330191348b19be264eabf5e0acd5fb97f0568d (diff) |
Find, now with pagination! Use limit and skip to get the results you want.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -97,3 +97,7 @@ We might also filter the data: Believe it or not, but we can also get a single observation by looking up its key: curl -s -u user1:pw1 http://localhost:80/sc/v0/get/1633633714355 | json_pp -json_opt utf8,pretty + +We can also limit the number of results and skip N results forward with the parameters limit and skip: + + curl -s -u user1:pw1 http://localhost:80/sc/v0/get?limit=5&skip=2 | json_pp -json_opt utf8,pretty |