robosats/api/urls.py

37 lines
1.1 KiB
Python
Raw Normal View History

from django.urls import path
2022-10-20 09:56:10 +00:00
from .views import (
MakerView,
OrderView,
UserView,
BookView,
InfoView,
RewardView,
PriceView,
LimitView,
HistoricalView,
TickView,
StealthView,
)
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView
from chat.views import ChatView
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()),
path("book/", BookView.as_view()),
path("info/", InfoView.as_view()),
path("price/", PriceView.as_view()),
2022-03-20 23:46:36 +00:00
path("limits/", LimitView.as_view()),
path("reward/", RewardView.as_view()),
path("historical/", HistoricalView.as_view()),
path("ticks/", TickView.as_view()),
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
]