<filename>backend/restful_api/urls.py<gh_stars>0
from django.conf.urls import url
from django.urls import include
from rest_framework import routers
from rest_framework_swagger.views import get_swagger_view

from . import views

router = routers.DefaultRouter()
router.register(r'user_attributes', views.UserAttributesViewSet)
router.register(r'solved_mission', views.solvedMissionViewSet)
router.register(r'placed_towers', views.placedTowersViewSet)
router.register(r'placed_landmarks', views.placedLandmarksViewSet)
router.register(r'all_solved_missions', views.AllSolvedMissionViewSet)


schema_view = get_swagger_view(title='Kort-cept API')


urlpatterns = [
    # Rest api
    url(r'^api/', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),  # noqa

    url(r'^auth/', include('djoser.urls')),
    url(r'^auth/', include('djoser.urls.authtoken')),
    url(r'^auth/', include('djoser.urls.jwt')),

    # swagger
    url(r'^swagger', schema_view)

]

<filename>backend/restful_api/urls.py<gh_stars>0
from django.conf.urls import url
from django.urls import include
from rest_framework import routers
from rest_framework_swagger.views import get_swagger_view

from . import views

router = routers.DefaultRouter()
router.register(r'user_attributes', views.UserAttributesViewSet)
router.register(r'solved_mission', views.solvedMissionViewSet)
router.register(r'placed_towers', views.placedTowersViewSet)
router.register(r'placed_landmarks', views.placedLandmarksViewSet)
router.register(r'all_solved_missions', views.AllSolvedMissionViewSet)


schema_view = get_swagger_view(title='Kort-cept API')


urlpatterns = [
    # Rest api
    url(r'^api/', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),  # noqa

    url(r'^auth/', include('djoser.urls')),
    url(r'^auth/', include('djoser.urls.authtoken')),
    url(r'^auth/', include('djoser.urls.jwt')),

    # swagger
    url(r'^swagger', schema_view)

]

# Rest api # noqa # swagger