mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-13 21:12:20 +01:00
27 lines
763 B
Python
27 lines
763 B
Python
from django.urls import path, include
|
|
from rest_framework.schemas import get_schema_view
|
|
|
|
from . import views
|
|
from marietje.api.openapi import OpenAPISchemaGenerator
|
|
|
|
app_name = "marietje"
|
|
|
|
urlpatterns = [
|
|
path("songs/", include("songs.api.v1.urls")),
|
|
path("queues/", include("queues.api.v1.urls")),
|
|
path("users/me/", views.MeAPIView.as_view(), name="me"),
|
|
path("login/", views.login_user),
|
|
path("permissions/", views.PermissionsAPIView.as_view(), name="permissions"),
|
|
path(
|
|
"schema",
|
|
get_schema_view(
|
|
title="API v1",
|
|
url="/api/v1/",
|
|
version=1,
|
|
urlconf="marietje.api.v1.urls",
|
|
generator_class=OpenAPISchemaGenerator,
|
|
),
|
|
name="schema-v1",
|
|
),
|
|
]
|