backend/conf/api_router.py

37 lines
1.1 KiB
Python
Raw Normal View History

2022-08-26 20:04:45 +03:00
from django.urls import path, include
2022-08-27 11:59:23 +03:00
from checker.api.views import ListCreateDocxApiView, RetireDocxSerializer, GetDocxState, ListCreateWordDocxApiView, \
GetWordDocxState, RetireWordDocxSerializer
2022-08-26 20:04:45 +03:00
urlpatterns = [
path("health/", include("health_check.urls")),
2022-08-27 11:13:36 +03:00
path(
"site/",
include(
[
path("docx/", ListCreateDocxApiView.as_view(), name="list_create_docx"),
path(
"docx/<uuid:uuid>", RetireDocxSerializer.as_view(), name="get_docx"
),
path(
"state/<uuid:uuid>", GetDocxState.as_view(), name="get_state_docx"
),
]
),
),
path(
"word/",
include(
[
2022-08-27 11:59:23 +03:00
path("docx/", ListCreateWordDocxApiView.as_view(), name="list_create_word"),
2022-08-27 11:13:36 +03:00
path(
2022-08-27 11:59:23 +03:00
"docx/<uuid:uuid>", GetWordDocxState.as_view(), name="get_word"
2022-08-27 11:13:36 +03:00
),
path(
2022-08-27 11:59:23 +03:00
"state/<uuid:uuid>", RetireWordDocxSerializer.as_view(), name="get_state_word"
2022-08-27 11:13:36 +03:00
),
]
),
),
2022-08-26 20:04:45 +03:00
]