from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from . import views urlpatterns = [ path('', views.api_root), path('snippets/', views.SnippetList.as_view()), path('snippets//', views.SnippetDetail.as_view()), path('users/', views.UserList.as_view()), path('users//', views.UserDetail.as_view()), path('snippets//highlight/', views.SnippetHighlight.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)