diff options
-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 |