from django.urls import path
from api.property_api.agent.views.agent_views import (
    AgentListCreateAPIView,
    AgentDetailAPIView,
    AgentPublicListAPIView,
    PropertyWithAgentDetailAPIView,
)
from api.property_api.agent.views.country_based_agents import CountryAgentListView
from api.property_api.agent.views.agent_verify_view import VerifyAgentView
from api.property_api.agent.views.agent_views import AgentDropdownListAPIView, AgentDropdownUserBasedListAPIView

urlpatterns = [
    path("agents/public/", AgentPublicListAPIView.as_view(), name="agents-public-list"),
    path("agents/", AgentListCreateAPIView.as_view(), name="agents-list-create"),
    path("agents/dropdown/", AgentDropdownListAPIView.as_view(), name="agents-list-create-dropdown"),
    path("agents/dropdown/user/", AgentDropdownUserBasedListAPIView.as_view(), name="agents-list-create-dropdown-user"),
    path("agents/<int:pk>/", AgentDetailAPIView.as_view(), name="agent-detail"),

    path("properties/<int:pk>/with-agent/", PropertyWithAgentDetailAPIView.as_view(), name="properties-detail-with-agent"),


    # country based agent
    path("countries/<int:country_id>/agents/", CountryAgentListView.as_view()),

    # verify agent
    path("agents/<int:agent_id>/verify/", VerifyAgentView.as_view()),
]