-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update trainer api call uri and add auth key and token
- Loading branch information
Showing
6 changed files
with
60 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
GET /trainer/api/v0/classify?sentence=hello | ||
host: api.botfuel.io | ||
accept: application/json | ||
|
||
HTTP/1.1 200 OK | ||
server: openresty/1.11.2.5 | ||
date: Fri, 04 May 2018 16:06:09 GMT | ||
content-type: application/json | ||
content-length: 118 | ||
connection: close | ||
access-control-allow-origin: * | ||
via: 1.1 vegur | ||
|
||
[{"id":"5aec7cf6ece6d400110ade38","label":"greetings","probability":1.0,"resolvePrompt":"greetings","type":"Intent"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
GET /trainer/api/v0/classify?sentence=delivery | ||
host: api.botfuel.io | ||
accept: application/json | ||
|
||
HTTP/1.1 200 OK | ||
server: openresty/1.11.2.5 | ||
date: Fri, 04 May 2018 16:06:09 GMT | ||
content-type: application/json | ||
content-length: 217 | ||
connection: close | ||
access-control-allow-origin: * | ||
via: 1.1 vegur | ||
|
||
[{"answers":[[{"payload":{"value":"Delivery Information"},"type":"text","value":"Delivery Information"}]],"id":"5aec7cdbece6d400110ade33","label":"delivery","probability":1.0,"resolvePrompt":"delivery","type":"Qna"}] |
14 changes: 0 additions & 14 deletions
14
fixtures/trainer-api-staging.herokuapp.com-443/152344254134967555
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
fixtures/trainer-api-staging.herokuapp.com-443/152344272970966058
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters