Last with the old frontend

This commit is contained in:
pacnpal
2025-08-28 11:37:24 -04:00
parent 08a4a2d034
commit c4702559fb
10 changed files with 3434 additions and 6 deletions

View File

@@ -15,10 +15,14 @@ from .views import (
RideListCreateAPIView,
RideDetailAPIView,
FilterOptionsAPIView,
CompanySearchAPIView,
RideModelSearchAPIView,
RideSearchSuggestionsAPIView,
)
from .company_views import (
RideCompanyListCreateAPIView,
RideCompanyDetailAPIView,
RideCompanySearchAPIView,
)
from .photo_views import RidePhotoViewSet
# Create router for nested photo endpoints
@@ -32,10 +36,15 @@ urlpatterns = [
path("", RideListCreateAPIView.as_view(), name="ride-list-create"),
# Filter options
path("filter-options/", FilterOptionsAPIView.as_view(), name="ride-filter-options"),
# Company endpoints - domain-specific CRUD for MANUFACTURER/DESIGNER companies
path("companies/", RideCompanyListCreateAPIView.as_view(),
name="ride-companies-list-create"),
path("companies/<int:pk>/", RideCompanyDetailAPIView.as_view(),
name="ride-company-detail"),
# Autocomplete / suggestion endpoints
path(
"search/companies/",
CompanySearchAPIView.as_view(),
RideCompanySearchAPIView.as_view(),
name="ride-search-companies",
),
path(