2022-01-01 22:34:23 +00:00
|
|
|
from django.urls import path
|
2022-10-25 18:04:12 +00:00
|
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView
|
|
|
|
|
|
|
|
from chat.views import ChatView
|
|
|
|
|
2022-10-20 09:56:10 +00:00
|
|
|
from .views import (
|
|
|
|
BookView,
|
2022-10-25 18:04:12 +00:00
|
|
|
HistoricalView,
|
2022-10-20 09:56:10 +00:00
|
|
|
InfoView,
|
|
|
|
LimitView,
|
2022-10-25 18:04:12 +00:00
|
|
|
MakerView,
|
|
|
|
OrderView,
|
|
|
|
PriceView,
|
|
|
|
RewardView,
|
2023-05-05 10:12:38 +00:00
|
|
|
RobotView,
|
2022-10-20 09:56:10 +00:00
|
|
|
StealthView,
|
2022-10-25 18:04:12 +00:00
|
|
|
TickView,
|
2024-06-27 16:47:23 +00:00
|
|
|
NotificationsView,
|
2022-10-20 09:56:10 +00:00
|
|
|
)
|
2022-01-01 22:34:23 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2022-10-20 09:56:10 +00:00
|
|
|
path("schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
|
|
path("", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
2023-11-11 15:48:54 +00:00
|
|
|
path("make/", MakerView.as_view(), name="make"),
|
2022-10-20 09:56:10 +00:00
|
|
|
path(
|
|
|
|
"order/",
|
|
|
|
OrderView.as_view({"get": "get", "post": "take_update_confirm_dispute_cancel"}),
|
2023-11-11 15:48:54 +00:00
|
|
|
name="order",
|
2022-02-17 19:50:10 +00:00
|
|
|
),
|
2023-11-11 15:48:54 +00:00
|
|
|
path("robot/", RobotView.as_view(), name="robot"),
|
|
|
|
path("book/", BookView.as_view(), name="book"),
|
|
|
|
path("info/", InfoView.as_view({"get": "get"}), name="info"),
|
|
|
|
path("price/", PriceView.as_view(), name="price"),
|
|
|
|
path("limits/", LimitView.as_view(), name="limits"),
|
|
|
|
path("reward/", RewardView.as_view(), name="reward"),
|
|
|
|
path("historical/", HistoricalView.as_view(), name="historical"),
|
|
|
|
path("ticks/", TickView.as_view(), name="ticks"),
|
|
|
|
path("stealth/", StealthView.as_view(), name="stealth"),
|
|
|
|
path("chat/", ChatView.as_view({"get": "get", "post": "post"}), name="chat"),
|
2024-06-27 16:47:23 +00:00
|
|
|
path("notifications/", NotificationsView.as_view(), name="notifications"),
|
2022-02-17 19:50:10 +00:00
|
|
|
]
|