@api_view(('<STR_LIT:GET>',))<EOL>def root_endpoint(request, format=None):
endpoints = []<EOL>for urlmodule in urlpatterns:<EOL><INDENT>if hasattr(urlmodule, '<STR_LIT>'):<EOL><INDENT>is_urlconf_module = True<EOL><DEDENT>else:<EOL><INDENT>is_urlconf_module = False<EOL><DEDENT>if is_urlconf_module:<EOL><INDENT>for url in urlmodule.urlconf_module.urlpatterns:<EOL><INDENT>if url.name in ['<STR_LIT>']:<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>endpoints.append({<EOL>'<STR_LIT:name>': url.name.replace('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT:url>': reverse(url.name, request=request, format=format)<EOL>})<EOL><DEDENT>except NoReverseMatch:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return Response(endpoints)<EOL>
List of all the available resources of this RESTful API.