influxdata / influxdata/influxdb
v1 /query compatibility API doesn't see parameters when using `GET`
Open
area/2.x
area/api
area/compat-v1x
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Our [v1 compatibility docs](https://docs.influxdata.com/influxdb/v2.0/reference/api/influxdb-1x/query/) claim that hitting the `/query` API with `GET` requests should work, but we saw that using `curl` with `--data-urlencode q="SHOW MEASUREMENTS"` failed to see the query.
Make sure `/query` works for both `GET` and `POST` requests.
Contributor guide
Research direction
Start with the v1 compatibility /query API and reproduce the documented curl GET request using --data-urlencode q="SHOW MEASUREMENTS"; compare it with POST handling. Done when /query receives the query parameter and works for both GET and POST requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100