bots: Add HTTP status code support to mock http conversations.

This commit is contained in:
Rohitt Vashishtha 2017-06-14 03:44:53 +05:30 committed by showell
parent 400d46a532
commit ea3dd2bd87
4 changed files with 39 additions and 28 deletions

View file

@ -0,0 +1,26 @@
{
"request": {
"api_url": "http://api.giphy.com/v1/gifs/translate",
"params": {
"s": "Hello",
"api_key": "12345678"
}
},
"response": {
"meta": {
"status": 200
},
"data": {
"images": {
"original": {
"url": "https://media4.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif"
}
}
}
},
"response-headers": {
"status": 200,
"ok": true,
"content-type": "application/json; charset=utf-8"
}
}

View file

@ -1,7 +0,0 @@
{
"api_url": "http://api.giphy.com/v1/gifs/translate",
"params": {
"s": "Hello",
"api_key": "12345678"
}
}

View file

@ -1,12 +0,0 @@
{
"meta": {
"status": 200
},
"data": {
"images": {
"original": {
"url": "https://media4.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif"
}
}
}
}