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

feat: handle params in request body for /query API #25762

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

hiltontj
Copy link
Contributor

@hiltontj hiltontj commented Jan 8, 2025

Closes #25749

This changes the /query API handler so that the parameters can be passed in either the request URI or in the request body for either a GET or POST request.

Parameters can be specified in the URI, the body, or both; if they are specified in both places, those in the body will take precedent.

Error variants in the HTTP server code related to missing request parameters were updated to return 400 status.

Copy link
Member

@pauldix pauldix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@hiltontj hiltontj merged commit dfc853d into main Jan 8, 2025
13 checks passed
@hiltontj hiltontj deleted the hiltontj/influxql-in-post-body branch January 8, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submitting InfluxQL query to v1 API should work in POST body
2 participants