Implement support for specifying query string params in URI templates
See original GitHub issueWhen adding a route, support the inclusion of query string params in the template string. We can take inspiration from RFC 6570 but we’ll also want to support filters/validators. Parsed values for the params could either be passed via keyword arguments to responders (that default to None
) or be made accessible via the Request
object (TBD).
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
c# - Additional/Optional query string parameters in URI ...
when I call CreateUserAccount with method POST it is working fine but when I call GetUser method using GET and sending only one...
Read more >REST API Design Best Practices for Parameter and Query ...
Where to put the parameters for APIs? Best practices for parameter and query string usage in REST APIs.
Read more >Add support for query string parameters in route templates
I'm basically making my own server that wraps an external API, but does some processing on some of the functions, and is accessed...
Read more >A Beginner's Guide to URL Parameters
In this comprehensive guide, we explore the ins and outs of URL parameters. Discover now how to use query strings without hurting your ......
Read more >URI Templates
Use URI Templates in your API Blueprint. ... + Parameters + id - A path variable that is required for a valid URL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, @CaselIT, for the clarification. I tried ‘get_param’ yesterday but saw that my curl call was failing to recognize the url with query parameters. Then I realized this morning that since I am using
zsh
instead ofsh
, I need to enclose my url with quotations so that it gets interpreted as a literal. Without the quotations,zsh
was expanding the?
and=
characters. I just realized that the examples in the docs assume that you are usingsh
and thus do not enclose the url with quotations. Either way, lesson learned. Always enclose your url’s with quotation marks.No objection. Feel free to close it.