These endpoints are currently for internal use only, but should be versioned nonetheless; Drupal will begin using the basket creation endpoint soon. No functionality has been changed. XCOM-494.
17 lines
418 B
Python
17 lines
418 B
Python
""" API v0 URLs. """
|
|
from django.conf.urls import patterns, url, include
|
|
|
|
from commerce.api.v0 import views
|
|
|
|
|
|
BASKET_URLS = patterns(
|
|
'',
|
|
url(r'^$', views.BasketsView.as_view(), name='create'),
|
|
url(r'^{}/order/$'.format(r'(?P<basket_id>[\w]+)'), views.BasketOrderView.as_view(), name='retrieve_order'),
|
|
)
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^baskets/', include(BASKET_URLS, namespace='baskets')),
|
|
)
|