2013-10-14 22:31:36 -04:00
|
|
|
from django.conf.urls import url, patterns
|
|
|
|
import views
|
|
|
|
|
2013-10-18 18:40:05 -04:00
|
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
|
|
|
|
2013-10-14 23:58:15 -04:00
|
|
|
urlpatterns = patterns('gameday.views',
|
|
|
|
url('^$', 'api_root'),
|
|
|
|
url('^lots/$', views.ParkingLotList.as_view(), name='parking-lots'),
|
2013-10-28 12:03:03 -04:00
|
|
|
url('^lots/rate/$', views.RateLot.as_view(), name='parking-rating'),
|
|
|
|
url('^lots/location/(?P<lot>\w+)/$', views.ParkingLotEntrance.as_view(), name='get-location'),
|
2013-11-12 20:13:13 -05:00
|
|
|
url('^lots/(?P<lot>\w+)/$', views.SingleParkingLotList.as_view(), name='parking-lot'),
|
2013-10-19 20:31:08 -04:00
|
|
|
url('^register/(?P<id>\d+)/$', views.ListRegisteredUsers.as_view(), name='get-registered-user'),
|
2013-10-19 21:40:29 -04:00
|
|
|
url('^register/(?P<fname>\w+)/(?P<lname>\w+)/$', views.ListRegisteredUserByName.as_view(),
|
|
|
|
name='get-registered-user-by-name'),
|
2013-10-19 20:31:08 -04:00
|
|
|
url('^register/$', views.RegisterUser.as_view(), name='register-user'),
|
2013-10-18 18:10:28 -04:00
|
|
|
)
|