We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ITNOA
Hi
I want to convert my below nested request to QueryString but I think ToQueryString does not work properly
QueryString
ToQueryString
var parameter = new RulesCommandServiceAppendRequest() { Chain = Chain.INPUT, Data = new RuleInputModel() { Protocol = "tcp", SourceIp = "2.2.2.2", DestinationIp = "1.1.1.1", SourcePort = "111", DestinationPort = "222", Jump = "DROP" } };
After I call WebSerializer.ToQueryString(parameter) I see below output:
WebSerializer.ToQueryString(parameter)
Chain=INPUT&Data=DestinationIp=1.1.1.1&DestinationPort=222&Jump=DROP&Protocol=tcp&SourceIp=2.2.2.2&SourcePort=111"
I expect my query string is like below:
Chain=INPUT&Data.DestinationIp=1.1.1.1&Data.DestinationPort=222&Data.Jump=DROP&Data.Protocol=tcp&Data.SourceIp=2.2.2.2&Data.SourcePort=111
What can I do?
The text was updated successfully, but these errors were encountered:
maybe related to #3 ?
Sorry, something went wrong.
I also ask question about this in SQ https://stackoverflow.com/q/76873657/1539100
No branches or pull requests
ITNOA
Hi
Description
I want to convert my below nested request to
QueryString
but I thinkToQueryString
does not work properlyActual Behaviour
After I call
WebSerializer.ToQueryString(parameter)
I see below output:Expected Behaviour
I expect my query string is like below:
What can I do?
The text was updated successfully, but these errors were encountered: