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: allow duplicate keys when using customQueryParam global flag #418

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

reubenmiller
Copy link
Owner

In global flag --customQueryParam <key>=<value>, allow users to provide the same key across different instances of --customQueryParam.

Example

The myValue query parameter is provided twice:

c8y api /example --customQueryParam "myValue=2" --customQueryParam "myValue=3" --customQueryParam other=value --dry

Which will result in a request which includes two myValue query parameters with two different values.

### GET /example?myValue=2&myValue=3&other=value

@reubenmiller reubenmiller merged commit 58f41f9 into v2 Dec 11, 2024
4 checks passed
@reubenmiller reubenmiller deleted the feat-support-duplicate-query-parameters branch December 11, 2024 07:23
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

Successfully merging this pull request may close these issues.

1 participant