from django.conf.urls import url
from django.conf import settings
from API import views

urlpatterns = [
    url(r'^API/mempool/$', views.mempool),
    url(r'^API/fee_graph/$', views.fee_graph),
    url(r'^API/mempool_graph/$', views.mempool_graph),
    url(r'^API/address_graph/$', views.address_graph),
    url(r'^API/subcomponent_graph/$', views.subcomponent_graph),

    url(r'^API/fee_data/$', views.FeeData.as_view()),
    url(r'^API/subcomponent_data/$', views.SubcomponentData.as_view()),
    url(r'^API/mempool_data/$', views.MempoolData.as_view()),
    url(r'^API/edge_data/$', views.EdgeDataList.as_view()),
    # Registering all the different view paths
    url(r'^API/BlockVizRequest/(?P<pk>[0-9]+)/$', views.BlockVizRequestDetail.as_view()),
    url(r'^API/BlockVizRequestList/$', views.BlockVizRequestList.as_view()),
    url(r'^API/Subcomponent/(?P<pk>[0-9]+)/$', views.SubcomponentDetail.as_view()),
    url(r'^API/SubcomponentList/$', views.SubcomponentList.as_view()),
    url(r'^API/BlockVizSearch/$', views.BlockVizSearch.as_view()),

    url(r'^API/AddressVizRequest/(?P<pk>[0-9]+)/$', views.AddressVizRequestDetail.as_view()),
    url(r'^API/AddressVizRequestList/$', views.AddressVizRequestList.as_view()),

    url(r'^API/TraceTxVizRequest/(?P<pk>[0-9]+)/$', views.TraceTxVizRequestDetail.as_view()),
    url(r'^API/TraceTxVizRequestList/$', views.TraceTxVizRequestList.as_view()),
]

