Browse Source

Add instructions for API Authorization

pull/1406/head
Thomas 3 years ago
parent
commit
bd4bf3635e
  1. 16
      README.md

16
README.md

@ -190,20 +190,22 @@ Run `yarn test`
## Public API
### Import Activities
#### Request
`POST http://localhost:3333/api/v1/import`
#### Authorization: Bearer Token
Set the header as follows:
Set the header for each request as follows:
```
"Authorization": "Bearer eyJh..."
```
You can get the _Bearer Token_ via `curl -s http://localhost:3333/api/v1/auth/anonymous/<INSERT_SECURITY_TOKEN_OF_ACCOUNT>`
### Import Activities
#### Request
`POST http://localhost:3333/api/v1/import`
#### Body
```

Loading…
Cancel
Save