def _ref(self, resp, base_name=None):
name = base_name or resp.get('<STR_LIT:title>', '<STR_LIT>') or resp.get('<STR_LIT:name>', '<STR_LIT>')<EOL>pointer = self.json_pointer + name<EOL>self.response_registry[name] = resp<EOL>return {'<STR_LIT>': pointer}<EOL>
Store a response schema and return a reference to it.

:param schema:
    Swagger response definition.
:param base_name:
    Name that should be used for the reference.

:rtype: dict
:returns: JSON pointer to the original response definition.