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

Example on documentation for mocking get wont work #3

Open
intiamaru opened this issue Jun 2, 2022 · 3 comments
Open

Example on documentation for mocking get wont work #3

intiamaru opened this issue Jun 2, 2022 · 3 comments

Comments

@intiamaru
Copy link

intiamaru commented Jun 2, 2022

This configuration on documentation for mocking 'get' call wont work:

{
  "endpoint": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "response": {
      "message": "success"
    }
  }
}

The actual configuration for getting the GET response should be:

{
  "endpoint": {
    "get":{	  
      "status": 200,
      "headers": {
        "Content-Type": "application/json"
      },
      "response": {
        "message": "success"
      }
    }
  }
}

I spent a few hours trying to find this out, so it will be a great hand for the newcomers.

@mghorbani2357
Copy link
Owner

Lots of thanks!

@intiamaru
Copy link
Author

Glad to help! And I have an interesting spin up / need we got for specific api mocking, so I might be making the first tests in a forked version, if you like it we can return this ideas to your original repo

@mghorbani2357
Copy link
Owner

That would be great!

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