Skip to content

Commit

Permalink
fix(core): api.rest example (#4339)
Browse files Browse the repository at this point in the history
* fix

* botId variable
  • Loading branch information
samuelmasse committed Jan 8, 2021
1 parent 8e26207 commit 5f8d189
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api.rest
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ Content-Type: application/x-www-form-urlencoded

email={{email}}&password={{password}}

###
@authToken = {{login.response.body.payload.token}}

### List All Bots (need to login first)
GET {{baseUrl}}/api/v1/admin/bots
Authorization: Bearer {{authToken}}
X-BP-Workspace: default

###
@botId = YOUR_BOT_ID

### Send a request using Converse
POST {{baseUrl}}/api/v1/bots/welcome-bot/converse/benchmarkUser
POST {{baseUrl}}/api/v1/bots/{{botId}}/converse/benchmarkUser
Content-Type: application/json

{
Expand Down

0 comments on commit 5f8d189

Please sign in to comment.