atuttle / Taffy

:candy: The REST Web Service framework for ColdFusion and Lucee
http://taffy.io
Other
225 stars 117 forks source link

Support for verb/query params with new framework setting... #385

Open charlesr1971 opened 5 years ago

charlesr1971 commented 5 years ago

I think it would be useful to have a setting called:

variables.framework.queryParamVerbMap

This would allow one or more verbs to allow query params to be passed into methods as optional arguments. Like:

variables.framework.queryParamVerbMap = {
    put: true,
    delete: true,
    post: true
}

The GET verb implicitly applies this rule, already, but the other 3 verbs should also be able to transmit query params in the API URL.

atuttle commented 3 years ago

I think I'd rather seem them always allowed in all cases. We already have a cascading priority setup, so I don't see any reason not to do the same for all verbs.