update readme

This commit is contained in:
Bevan Hunt 2021-03-25 17:06:28 -07:00
parent 0c43a51f29
commit c18bce2263
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -461,7 +461,7 @@ dependencies = [
[[package]]
name = "broker"
version = "9.0.0"
version = "9.0.1"
dependencies = [
"anyhow",
"async-std",

View File

@ -1,6 +1,6 @@
[package]
name = "broker"
version = "9.0.0"
version = "9.0.1"
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
edition = "2018"
license = "MIT"

View File

@ -103,9 +103,9 @@ POST /insert
- authenticated endpoint (Authorization: Bearer {jwt}) or (Authorization: Basic {username:password})
- POST JSON to insert an event
```json
{"event":{...}, "data":{...}, "tenant_name":{...}}
{"event":{...}, "data":{...}}
```
- where {...} is for the event a string, data is any JSON you want, and tenant_name is the name of the tenant
- where {...} is for the event a string and data is any JSON you want
will return: `200` or `500` or `400` or `401`