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,
|
|
|
|
UserView,
|
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"),
|
2022-02-17 19:50:10 +00:00
|
|
|
path("make/", MakerView.as_view()),
|
2022-10-20 09:56:10 +00:00
|
|
|
path(
|
|
|
|
"order/",
|
|
|
|
OrderView.as_view({"get": "get", "post": "take_update_confirm_dispute_cancel"}),
|
2022-02-17 19:50:10 +00:00
|
|
|
),
|
|
|
|
path("user/", UserView.as_view()),
|
2023-05-05 10:12:38 +00:00
|
|
|
path("robot/", RobotView.as_view()),
|
2022-02-17 19:50:10 +00:00
|
|
|
path("book/", BookView.as_view()),
|
|
|
|
path("info/", InfoView.as_view()),
|
2022-03-12 11:24:11 +00:00
|
|
|
path("price/", PriceView.as_view()),
|
2022-03-20 23:46:36 +00:00
|
|
|
path("limits/", LimitView.as_view()),
|
2022-03-06 16:08:28 +00:00
|
|
|
path("reward/", RewardView.as_view()),
|
2022-05-09 17:35:04 +00:00
|
|
|
path("historical/", HistoricalView.as_view()),
|
2022-06-21 19:29:07 +00:00
|
|
|
path("ticks/", TickView.as_view()),
|
2022-08-12 17:41:06 +00:00
|
|
|
path("stealth/", StealthView.as_view()),
|
2022-10-20 09:56:10 +00:00
|
|
|
path("chat/", ChatView.as_view({"get": "get", "post": "post"})),
|
2022-02-17 19:50:10 +00:00
|
|
|
]
|