"""
All URL mappings for HTTP-based APIs
"""
from django.conf.urls import patterns, url

from rest_framework.urlpatterns import format_suffix_patterns

from edx_notifications.server.api import consumer as consumer_views

urlpatterns = patterns(  # pylint: disable=invalid-name
    '',
    url(
        r'edx_notifications/v1/consumer/notifications/count$',
        consumer_views.NotificationCount.as_view(),
        name='edx_notifications.consumer.notifications.count'
    ),
    url(
        r'edx_notifications/v1/consumer/notifications/(?P<msg_id>[0-9]+)$',
        consumer_views.NotificationDetail.as_view(),
        name='edx_notifications.consumer.notifications.detail'
    ),
    url(
        r'edx_notifications/v1/consumer/notifications/mark_notifications$',
        consumer_views.MarkNotifications.as_view(),
        name='edx_notifications.consumer.notifications.mark_notifications'
    ),
    url(
        r'edx_notifications/v1/consumer/notifications$',
        consumer_views.NotificationsList.as_view(),
        name='edx_notifications.consumer.notifications'
    ),
    url(
        r'edx_notifications/v1/consumer/renderers/templates$',
        consumer_views.RendererTemplatesList.as_view(),
        name='edx_notifications.consumer.renderers.templates'
    ),
)

urlpatterns = format_suffix_patterns(urlpatterns)  # pylint: disable=invalid-name

@@ -214,16 +214,252 @@
 _views%0A%0A
+from .url_regex import (%0A    CONSUMER_NOTIFICATIONS_COUNT_REGEX,%0A    CONSUMER_NOTIFICATION_DETAIL_REGEX,%0A    CONSUMER_NOTIFICATIONS_MARK_NOTIFICATIONS_REGEX,%0A    CONSUMER_NOTIFICATIONS_REGEX,%0A    CONSUMER_RENDERERS_TEMPLATES_REGEX,%0A)%0A%0A%0A
 urlpatte
@@ -535,61 +535,42 @@
     
-r'edx_notifications/v1/consumer/notifications/count$'
+CONSUMER_NOTIFICATIONS_COUNT_REGEX
 ,%0A  
@@ -709,74 +709,42 @@
     
-r'edx_notifications/v1/consumer/notifications/(?P%3Cmsg_id%3E%5B0-9%5D+)$'
+CONSUMER_NOTIFICATION_DETAIL_REGEX
 ,%0A  
@@ -885,74 +885,55 @@
     
-r'edx_notifications/v1/consumer/notifications/mark_notifications$'
+CONSUMER_NOTIFICATIONS_MARK_NOTIFICATIONS_REGEX
 ,%0A  
@@ -1085,55 +1085,36 @@
     
-r'edx_notifications/v1/consumer/notifications$'
+CONSUMER_NOTIFICATIONS_REGEX
 ,%0A  
@@ -1247,61 +1247,42 @@
     
-r'edx_notifications/v1/consumer/renderers/templates$'
+CONSUMER_RENDERERS_TEMPLATES_REGEX
 ,%0A  

add mock urls for the API