2022-01-01 22:34:23 +00:00
|
|
|
from django.urls import path
|
2022-08-12 17:41:06 +00:00
|
|
|
from .views import MakerView, OrderView, UserView, BookView, InfoView, RewardView, PriceView, LimitView, HistoricalView, TickView, StealthView
|
2022-10-02 18:02:35 +00:00
|
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
|
2022-01-01 22:34:23 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2022-10-02 18:02:35 +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-03-05 18:43:15 +00:00
|
|
|
path("order/",OrderView.as_view({
|
2022-02-17 19:50:10 +00:00
|
|
|
"get": "get",
|
|
|
|
"post": "take_update_confirm_dispute_cancel"
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
path("user/", UserView.as_view()),
|
|
|
|
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-02-17 19:50:10 +00:00
|
|
|
]
|