from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='Showcase API')
urlpatterns = [
url(r'^$', schema_view, name='swagger'),
url(r'^pir/$', rest.pir_list),
url(r'^pir/(?P<pk>[^/]+)/$', rest.pir_detail),
url('^sprint/',
include(
[
url(r'^$', rest.sprint_list),
url(r'^by_pir/(?P<pir_pk>[0-9a-f-]+)/$', rest.sprint_list_by_pir),
url(r'(?P<pk>[0-9a-f-]+)/$', rest.sprint_detail),
]
)),