Files
goodtimes/manage_events/api/urls.py
rizwanisready 30eb42baca preference api
2024-03-11 15:30:28 +05:30

107 lines
2.8 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(
"venue/delete/<int:pk>/",
views.VenueDeleteAPIView.as_view(),
name="venue-delete",
),
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",
),
# Events filtered by Princiapl's Favorites
path(
"favorites/events/", views.FavoriteEventsList.as_view(), name="favorite-events"
),
# Events filtered by Date Range
path(
"events/date-range/",
views.EventDateRangeAPIView.as_view(),
name="event-date-range",
),
# My Events
path("my-events/", views.MyEventsAPIView.as_view(), name="my-events"),
# Events Review Add and Edit
path(
"event-reviews/",
views.EventReviewCreateAPIView.as_view(),
name="event-review-create",
),
# Cheking Principal Preference
path(
"check_principal_preference/",
views.CheckPrincipalPreference.as_view(),
name="check_principal_preference",
),
]