-
Notifications
You must be signed in to change notification settings - Fork 244
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
Support for binding query parameters similar to binding request payload #1160
Comments
This struct defines fields for binding HTTP request parameters using param tags: type Filter struct {
ID int `param:"id"` // Path parameter for item ID
GG []string `param:"gg"` // Query parameter for multiple values
Query string `param:"query"` // Single query parameter for search term
} ID: an integer path parameter, e.g., /items/{id} |
Hi, can I please be assigned this issue? I would like to work on it. |
@surajit-zs should we have it as part of the Bind maybe it would be an overkill, Bind is for body and taking query params and path params when we already allow to take from context. It would definitely ease the process, but should it be a different method altogether? @rigved-telang we would need to analyse if this should be part of bind. |
Cool. Is there any other issue that needs to be picked on priority, I am trying to learn Go so any issue is fine by me |
You may check issue 1154 |
@aryanmehrotra not in existing bind |
ctx.Bind()
can have feature to bind the query parameters to struct to fields that have special tag (sayqparam
) along with binding request payload.The text was updated successfully, but these errors were encountered: