urls.py 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
from django.urls import path

from . import views

urlpatterns = [
    path('', views.APIHomeView.as_view(), name='api-home'),
    path('modules/', views.ModulesView.as_view(), name='api-modules'),
    path('modules/<name:module_name>', views.ModuleView.as_view(), name='api-module'),
    path('teams/', views.TeamsView.as_view(), name='api-teams'),
    path('teams/<locale:team_name>', views.TeamView.as_view(), name='api-team'),
    path('languages/', views.LanguagesView.as_view(), name='api-languages'),
    path('releases/', views.ReleasesView.as_view(), name='api-releases'),
    path('releases/<name:release>', views.ReleaseView.as_view(), name='api-release'),
    path('releases/<name:release>/stats', views.ReleaseStatsView.as_view(), name='api-release-stats'),
    path('releases/<name:release>/languages/<locale:lang>', views.ReleaseLanguageView.as_view(),
        name='api-release-language'),
    path(
        'modules/<name:module_name>/branches/<name:branch_name>/domains/<name:domain_name>'
        '/languages/<locale:lang>',
        views.ModuleLangStatsView.as_view(),
        name='api-module-lang-stats'
    ),
]