def get_all_remote_methods(resolver=None, ns_prefix='<STR_LIT>'):
if not resolver:<EOL><INDENT>resolver = get_resolver(get_urlconf())<EOL><DEDENT>result = {}<EOL>for name in resolver.reverse_dict.keys():<EOL><INDENT>if not isinstance(name, six.string_types):<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>url = reverse(ns_prefix + name)<EOL>resmgr = resolve(url)<EOL>ViewClass = import_string('<STR_LIT>'.format(resmgr.func.__module__, resmgr.func.__name__))<EOL>if isclass(ViewClass) and issubclass(ViewClass, JSONResponseMixin):<EOL><INDENT>result[name] = _get_remote_methods_for(ViewClass, url)<EOL><DEDENT><DEDENT>except (NoReverseMatch, ImproperlyConfigured):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>for namespace, ns_pattern in resolver.namespace_dict.items():<EOL><INDENT>sub_res = get_all_remote_methods(ns_pattern[<NUM_LIT:1>], ns_prefix + namespace + '<STR_LIT::>')<EOL>if sub_res:<EOL><INDENT>result[namespace] = sub_res<EOL><DEDENT><DEDENT>return result<EOL>
Returns a dictionary to be used for calling ``djangoCall.configure()``, which itself extends the
Angular API to the client, offering him to call remote methods.