Files
goodtimes/manage_events/api/urls.py
2024-03-06 22:40:53 +05:30

78 lines
1.9 KiB
Python

from django.urls import path
from . import views
app_name = "manage_events_api"
urlpatterns = [
path(
"add-event/",
views.CreateEventApi.as_view(),
name="add_event",
),
path("get-events/", views.EventsAPIView.as_view(), name="events"),
path(
"event/<int:pk>/",
views.EventDetailAPIView.as_view(),
name="get_event",
),
path(
"add-venue/",
views.CreateVenueApi.as_view(),
name="add_venue",
),
path(
"get-venue/",
views.VenueListView.as_view(),
name="get_venue",
),
path(
"event-master/search/",
views.EventMasterSearchAPIView.as_view(),
name="event_master_search",
),
# Others
path("geocode/", views.GeocodeAPIView.as_view(), name="geocode_api"),
# All Preferences List
path(
"event-categories/",
views.EventCategoryListAPIView.as_view(),
name="event-category-list",
),
# Add Principal Preferences
path(
"add-principal-preferences/",
views.PrincipalPreferenceView.as_view(),
name="principal_preferences",
),
# Principal Preference List
path(
"principal-preferences/",
views.PrincipalPreferenceDetailView.as_view(),
name="principal-preferences",
),
# Principal Location
path(
"add-location/",
views.IAmPrincipalLocationAPIView.as_view(),
name="add_location",
),
# Favorites
path(
"toggle-favorite/<int:event_id>/",
views.ToggleFavoriteView.as_view(),
name="toggle-favorite",
),
# Going | Interested
path(
"event-status/<int:event_id>/",
views.EventStatusUpdateAPIView.as_view(),
name="event-status-update",
),
# Events filtered by 10 KM
path(
"events/filter-by-location/",
views.EventFilterByLocationAPIView.as_view(),
name="filter-events-by-location",
),
]