I have few parameters that appear across different methods [mix of GET and POST methods]. I’m using traits to capture these params. But I’m ending up repeating these once for GET and once for POST. Is there a notation to refer to parameters of a trait in both Get and Post method without declaring them twice.
As an example, If I use a trait as “member_aware” to indicate the method invocation needs a valid member_id as:
Id of the user
currently this can be used only with GET, for post i’m redefining above with a different name ‘member_aware_post’.