What design pattern is used when a HTTP-based service, which could be called with a number of different parameters, is designed?
Some parameters are required, some are optional, some must be used together, others are completely contradictory. I am tired of doing the same if-this-and-that-do-whatever thing, and clutter my service methods. There must be a better way.
I am familiar with the concept of request filters, but that also helps only partially, because I have to supply them with the same data context that I supply my controllers with.
What is the appropriate way to generate all the input rules in an decoupled fashion?