From 2279cb171edee88db4d6ec9841d7190209bfeddf Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 22 Jun 2021 07:02:29 +0200 Subject: update the examples with more realistic data --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 002c3e4..eba891d 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.1