Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dobby act as mock service #11

Open
dineshba opened this issue Oct 15, 2020 · 1 comment
Open

Make dobby act as mock service #11

dineshba opened this issue Oct 15, 2020 · 1 comment

Comments

@dineshba
Copy link
Member

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"
}
@jskswamy
Copy link
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants