def merge_response_func(func, key):
def wrap(f):<EOL><INDENT>if not hasattr(f, "<STR_LIT>"):<EOL><INDENT>f._response_key_func_mappings = dict()<EOL><DEDENT>f._response_key_func_mappings[key] = func<EOL>return f<EOL><DEDENT>return wrap<EOL>
Use this decorator to set a new merging
    response function to HTTP endpoints

    candidate function must have the following signature
    and be childs of BaseApi:
    ```
        def merge_some_function(self, response, rison_args):
    ```

:param func: Name of the merge function where the key is allowed
:param key: The key name for rison selection
:return: None