diff options
author | Linus Nordberg <linus@nordberg.se> | 2021-10-27 11:00:26 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2021-10-27 11:00:48 +0200 |
commit | 415044e7087ff89efc15e1babf84dd963c617175 (patch) | |
tree | fde7ea79fbe91e83f850e76e7a94df226e48ed11 /README.md | |
parent | 7a663a74601c3b61f1903c831d4b8843769e87e4 (diff) |
quote url containing ampersand and clarify "key"linus/debian11
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -93,10 +93,10 @@ We might also filter the data: curl -s -u user1:pw1 http://localhost:80/sc/v0/get?port=111 | json_pp -json_opt utf8,pretty -Believe it or not, but we can also get a single observation by looking up its key: +Believe it or not, but we can also get a single observation by looking up its key (_id): 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 + curl -s -u user1:pw1 'http://localhost:80/sc/v0/get?limit=5&skip=2' | json_pp -json_opt utf8,pretty |