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

[FEATURE] Make raw JSON REST requests to OpenSearch #395

Closed
Tracked by #62
dblock opened this issue Oct 16, 2023 · 2 comments · Fixed by #399
Closed
Tracked by #62

[FEATURE] Make raw JSON REST requests to OpenSearch #395

dblock opened this issue Oct 16, 2023 · 2 comments · Fixed by #399
Labels
enhancement New feature or request

Comments

@dblock
Copy link
Member

dblock commented Oct 16, 2023

Is your feature request related to a problem?

Coming from opensearch-project/opensearch-clients#62, add support for making raw JSON requests.

What solution would you like?

Add a high level DSL, e.g. client.get and client.post.

Do you have any additional context?

Some of this may already be implemented under #331. At the very least we need documentation that doesn't use any high level DSL methods.

@Jakob3xD
Copy link
Collaborator

This can already be done by using the Perform function of the client.

func (c *Client) Perform(req *http.Request) (*http.Response, error) {

You just need to build/ create the http request by your self.

@dblock
Copy link
Member Author

dblock commented Oct 17, 2023

@Jakob3xD thanks, we just need to document this and provide a working sample ;)

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.

2 participants