              renderer_classes = view_renderers
  
              def get(self, request, *args, **kwargs):
                  ret = OrderedDict()
                  namespace = request.resolver_match.namespace
                  for key, url_name in api_root_dict.items():
                      if namespace:
 
</s> remove     def get_api_root_view(self):
 </s> add     def get_api_root_view(self, schema_urls=None):
                if request.accepted_renderer.media_type in schema_media_types:
                    # Return a schema response.
                    schema = schema_generator.get_schema(request)
                    if schema is None:
                        raise exceptions.PermissionDenied()
                    return Response(schema)

                # Return a plain {"name": "hyperlink"} response.
              renderer_classes = view_renderers
  
              def get(self, request, *args, **kwargs):
                if request.accepted_renderer.media_type in schema_media_types:
                    # Return a schema response.
                    schema = schema_generator.get_schema(request)
                    if schema is None:
                        raise exceptions.PermissionDenied()
                    return Response(schema)

                # Return a plain {"name": "hyperlink"} response.
                  ret = OrderedDict()
                  namespace = request.resolver_match.namespace
                  for key, url_name in api_root_dict.items():
                      if namespace:
keep keep add keep keep keep keep
 Schemas & client libraries. (#4179)

* Added schema generation support.
* New tutorial section.
* API guide on schema generation.
* Topic guide on API clients. 
rest_framework/routers.py