summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md25
1 files changed, 3 insertions, 22 deletions
diff --git a/README.md b/README.md
index e6ae44d..1537048 100644
--- a/README.md
+++ b/README.md
@@ -61,28 +61,9 @@ adding some observations. First, get a JWT for the default user `usr`:
JWT=$(curl http://localhost:8000/api/v1.0/auth -X POST -p -u usr:pwd | jq -r .access_token)
-Then we use the JWT to add an observation:
-
- 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 --data-binary @- -H "Authorization: Bearer $JWT" http://localhost:80/sc/v0/add
+Then we use the JWT to add an observation (defined in `example_data.json`):
+
+ curl -s --data-binary @example_data.json -H "Authorization: Bearer $JWT" http://localhost:80/sc/v0/add
Try retreiving all observations permitted by our JWT: