diff options
author | Linus Nordberg <linus@nordberg.se> | 2021-06-22 07:02:29 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2021-06-22 07:02:29 +0200 |
commit | 2279cb171edee88db4d6ec9841d7190209bfeddf (patch) | |
tree | e81e9b42e53653ad8996463e0c8373f2817e1a19 | |
parent | 5d6c4a8d3987be76d23cb31098ca1c367ef5bd44 (diff) |
update the examples with more realistic data
-rw-r--r-- | README.md | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -55,8 +55,27 @@ Start the demo HTTP server. Submit some data. - echo '[{"a":"räksmörgås","domain":"foo.se"},{"bar":"Baz"}]' | curl -s -u admin:admin --data-binary @- http://localhost:8000/sc/v0/add + echo '[{ + "ip": "192.0.2.10", + "port": 443, + "whois_description": "SOMENET", + "asn": "AS65001", + "asn_country_code": "SE", + "ptr": "host10.test.soc.sunet.se", + "abuse_mail": "abuse@test.soc.sunet.se", + "domain": "sunet.se", + "timestamp_in_utc": "2021-06-21T14:06 UTC", + "producer_unique_keys": { + "subject_cn": "unknown", + "subject_o": "unknown", + "full_name": "VMware ESXi 6.7.0 build-17700523", + "end_of_general_support": false, + "cve_2021_21972": "CVE-2021-21972 not applicable", + "cve_2021_21974": "CVE-2021-21974 patched", + "cve_2021_21985": "CVE-2021-21985 not applicable" + } + }]' | curl -s -u admin:admin --data-binary @- http://localhost:8000/sc/v0/add Get the same data back. - curl -s -u foo.se: http://localhost:8000/sc/v0/get | json_pp -json_opt utf8,pretty + curl -s -u sunet.se: http://localhost:8000/sc/v0/get | json_pp -json_opt utf8,pretty |