""".. Ignore pydocstyle D400.

=============
Core API URLs
=============

The ``routList`` is ment to be included in ``urlpatterns`` with the
following code:

.. code-block:: python

    from rest_framework import routers

    from rolca.core.api import urls as core_api_urls

    route_lists = [
        core_api_urls.routeList,
        ...
    ]

    router = routers.DefaultRouter()
    for route_list in route_lists:
        for prefix, viewset in route_list:
            router.register(prefix, viewset)

For advanced configuration code can be accordingly changed to meet the
needs.

"""
from rolca.core.api.views import ContestViewSet, SubmissionViewSet

routeList = (
    (r'photo', SubmissionViewSet),
    (r'contest', ContestViewSet),
)

""".. Ignore pydocstyle D400.

=============
Core API URLs
=============

The ``routList`` is ment to be included in ``urlpatterns`` with the
following code:

.. code-block:: python

    from rest_framework import routers

    from rolca.core.api import urls as core_api_urls

    route_lists = [
        core_api_urls.routeList,
        ...
    ]

    router = routers.DefaultRouter()
    for route_list in route_lists:
        for prefix, viewset in route_list:
            router.register(prefix, viewset)

For advanced configuration code can be accordingly changed to meet the
needs.

"""
from rolca.core.api.views import ContestViewSet, SubmissionViewSet

routeList = (
    (r'submission', SubmissionViewSet),
    (r'contest', ContestViewSet),
)

Rename photo endpoint to submission
Rename photo endpoint to submission
