robosats/api/urls.py

40 lines
1.3 KiB
Python
Raw Normal View History

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,
RobotView,
2022-10-20 09:56:10 +00:00
StealthView,
2022-10-25 18:04:12 +00:00
TickView,
2022-10-20 09:56:10 +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"),
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"}),
name="order",
2022-02-17 19:50:10 +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"),
2022-02-17 19:50:10 +00:00
]