dobby icon indicating copy to clipboard operation
dobby copied to clipboard

Make dobby act as mock service

Open dineshba opened this issue 5 years ago • 1 comments

We can register the request url, response body with some delay.

curl -X POST http://dobby/register -d 
{
    "url": "/payment",
    "method": "POST",
    "responseBody": {
         "success": true,
         "data": somedata
    },
    "delay": "900ms"
}

dineshba avatar Oct 15 '20 10:10 dineshba

@dineshba we can also use https://github.com/bxcodec/faker to generate fake data.

User can specify fields they want to fake data when submitting the request, dobby can respond back with generated fields

@aswinkarthik @prabhu43 @nithyanatarajan what do you think about the feature?

jskswamy avatar Feb 12 '21 03:02 jskswamy