old_contents: from django.urls import include, path
  
  from rest_framework import routers
  
  from resolwe.api_urls import api_router as resolwe_router
  from resolwe.flow.views import EntityViewSet
  from resolwe_bio.kb.views import (
      FeatureSearchViewSet, FeatureAutocompleteViewSet, MappingSearchViewSet
  )
  
  from .routers import SearchRouter
  
  
  api_router = routers.DefaultRouter(trailing_slash=False)  # pylint: disable=invalid-name
  api_router.register(r'sample', EntityViewSet)
  
  search_router = SearchRouter(trailing_slash=False)  # pylint: disable=invalid-name
  search_router.register(r'kb/feature/search', FeatureSearchViewSet, 'kb_feature_search')
  search_router.register(r'kb/feature/autocomplete', FeatureAutocompleteViewSet, 'kb_feature_autocomplete')
  search_router.register(r'kb/mapping/search', MappingSearchViewSet, 'kb_mapping_search')
  
  urlpatterns = [  # pylint: disable=invalid-name
      path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      # XXX: Temporary fix to work with Resolwe 2.0.0, which requires 'resolwe-api' namespace to be available when
      # reporting errors when running processes.
      path('api-resolwe/', include((resolwe_router.urls, 'resolwe-api'))),
      path('api/', include((api_router.urls + search_router.urls + resolwe_router.urls, 'resolwebio-api'))),
  ]
  
new_contents: from django.urls import include, path
  
  from rest_framework import routers
  
  from resolwe.api_urls import api_router as resolwe_router
  from resolwe.flow.views import EntityViewSet
  from resolwe_bio.kb.views import (
      FeatureSearchViewSet, FeatureAutocompleteViewSet, MappingSearchViewSet
  )
  
  from .routers import SearchRouter
  
  
  api_router = routers.DefaultRouter(trailing_slash=False)
  api_router.register(r'sample', EntityViewSet)
  
  search_router = SearchRouter(trailing_slash=False)
  search_router.register(r'kb/feature/search', FeatureSearchViewSet, 'kb_feature_search')
  search_router.register(r'kb/feature/autocomplete', FeatureAutocompleteViewSet, 'kb_feature_autocomplete')
  search_router.register(r'kb/mapping/search', MappingSearchViewSet, 'kb_mapping_search')
  
  urlpatterns = [
      path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      # XXX: Temporary fix to work with Resolwe 2.0.0, which requires 'resolwe-api' namespace to be available when
      # reporting errors when running processes.
      path('api-resolwe/', include((resolwe_router.urls, 'resolwe-api'))),
      path('api/', include((api_router.urls + search_router.urls + resolwe_router.urls, 'resolwebio-api'))),
  ]
  
subject: Remove obsolete pylint disables