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

High level API around the http mock #3

Open
delvedor opened this issue Apr 9, 2020 · 0 comments · May be fixed by #7
Open

High level API around the http mock #3

delvedor opened this issue Apr 9, 2020 · 0 comments · May be fixed by #7
Labels
enhancement New feature or request

Comments

@delvedor
Copy link
Member

delvedor commented Apr 9, 2020

We should not assume that all users know the HTTP style query, we should provide a way to allow them to specify which API to mock.

mock.add({
  api: 'indices.delete'
}, () => {
  return { acknowledged: true }
})
@delvedor delvedor added the enhancement New feature or request label Apr 9, 2020
@delvedor delvedor linked a pull request Apr 14, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant