Unexpected behavior with URL parameters

Currently when you have a request URL with parameters, like this

https://localhost:1234/api/foo/:activeOnly

on the Params tab you can disable (uncheck) the :activeOnly parameter, and I would have expected the parameter not to pass to the request at all in that case (eg. for optional parameters).

Instead it passes the raw parameter name to the endpoint, in this case :activeOnly - the checkbox doesn’t remove the parameter from the request, it just makes the URL behave as though it isn’t a parameter but is literally part of the URL.

Please authenticate to join the conversation.

Upvoters
Status

Needs Triage

Board

Feedback

Tags

Improvement

Date

Over 1 year ago

Author

Kevin Davis

Subscribe to post

Get notified by email when there are changes.