phase7: add minimal read-only drf api with player search endpoints
This commit is contained in:
19
apps/api/urls.py
Normal file
19
apps/api/urls.py
Normal file
@ -0,0 +1,19 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import (
|
||||
CompetitionListApiView,
|
||||
PlayerDetailApiView,
|
||||
PlayerSearchApiView,
|
||||
SeasonListApiView,
|
||||
TeamListApiView,
|
||||
)
|
||||
|
||||
app_name = "api"
|
||||
|
||||
urlpatterns = [
|
||||
path("players/", PlayerSearchApiView.as_view(), name="players"),
|
||||
path("players/<int:pk>/", PlayerDetailApiView.as_view(), name="player_detail"),
|
||||
path("competitions/", CompetitionListApiView.as_view(), name="competitions"),
|
||||
path("teams/", TeamListApiView.as_view(), name="teams"),
|
||||
path("seasons/", SeasonListApiView.as_view(), name="seasons"),
|
||||
]
|
||||
Reference in New Issue
Block a user