Esempio n. 1
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:wxuser-list'), reverse('api:wxuser-detail', kwargs={'pk': 1})
router.register(r'wxuser', views.WxUserViewSet, base_name='wxuser')

urlpatterns = [
    # url(r'^wxuser/autocomplete/$', views.CustomerAutocomplete.as_view(), name='customer-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 2
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:customer-list'), reverse('api:customer-detail', kwargs={'pk': 1})
router.register(r'customer', views.CustomerViewSet, base_name='customer')
router.register(r'address', views.AddressViewSet, base_name='address')

urlpatterns = [
    url(r'^customer/autocomplete/$',
        views.CustomerAutocomplete.as_view(),
        name='customer-autocomplete'),
    url(r'^address/autocomplete/$',
        views.AddressAutocomplete.as_view(),
        name='address-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 3
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:dealsubscribe-list'), reverse('api:dealsubscribe-detail', kwargs={'pk': 1})
router.register(r'dealsubscribe',
                views.DealSubscribeViewSet,
                base_name='dealsubscribe')

urlpatterns = []

urlpatterns += router.urls
Esempio n. 4
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:expresscarrier-list'), reverse('api:expresscarrier-detail', kwargs={'pk': 1})
router.register(r'expressorder',
                views.ExpressOrderViewSet,
                base_name='expressorder')
router.register(r'expresscarrier',
                views.ExpressCarrierViewSet,
                base_name='expresscarrier')

urlpatterns = [
    url(r'^express_carrier/autocomplete/$',
        views.ExpressCarrierAutocomplete.as_view(),
        name='express_carrier-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 5
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:word-list'), reverse('api:word-detail', kwargs={'pk': 1})
router.register(r'word', views.WordViewSet, base_name='word')
router.register(r'skintype', views.SkinTypeViewSet, base_name='skintype')

urlpatterns = [
    url(r'^word/autocomplete/$',
        views.WordAutocompleteAPIView.as_view(),
        name='word-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 6
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:report-list'), reverse('api:report-detail', kwargs={'pk': 1})
router.register(r'report', views.ReportViewSet, base_name='report')

urlpatterns = [
]

urlpatterns += router.urls
Esempio n. 7
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:brand-list'), reverse('api:brand-detail', kwargs={'pk': 1})
router.register(r'brand', views.BrandViewSet, base_name='brand')
router.register(r'product', views.ProductViewSet, base_name='product')

urlpatterns = [
    url(r'^product/product/autocomplete/$', views.ProductAutocomplete.as_view(), name='product-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 8
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:notification-list'),reverse('api:notification-detail', kwargs={'pk': 1})
router.register(r'notification', views.NotificationViewSet, base_name='notification')
# router.register(r'notificationcontent', views.NotificationContentViewSet, base_name='notificationcontent')
router.register(r'sitemailcontent', views.SiteMailContentViewSet, base_name='sitemailcontent')
router.register(r'sitemailreceive', views.SiteMailReceiveViewSet, base_name='sitemailreceive')
router.register(r'sitemailsend', views.SiteMailSendViewSet, base_name='sitemailsend')
router.register(r'task', views.TaskViewSet, base_name='task')

urlpatterns = [
    url(r'sitemail/receive/markall', views.sitemail_markall, name='sitemail_markall'),
    url(r'notification/markall', views.notification_markall, name='notification_markall'),
]

urlpatterns += router.urls
Esempio n. 9
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:store-list'), reverse('api:store-detail', kwargs={'pk': 1})
router.register(r'store', views.StoreViewSet, base_name='store')

urlpatterns = []

urlpatterns += router.urls
Esempio n. 10
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:order-list'), reverse('api:order-detail', kwargs={'pk': 1})
router.register(r'order', views.OrderViewSet, base_name='order')
router.register(r'orderproduct', views.OrderProductViewSet, base_name='orderproduct')

urlpatterns = [

]

urlpatterns += router.urls
Esempio n. 11
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:brand-list'), reverse('api:brand-detail', kwargs={'pk': 1})
router.register(r'premium_product', views.PremiumProductViewSet, base_name='premiumproduct')

urlpatterns = [
    url(r'^premium_product/autocomplete/$', views.PremiumProductAutocompleteAPIView.as_view(), name='premiumproduct-autocomplete'),
    url(r'^premium_product/search/$', views.PremiumProductSearchAPIView.as_view(), name='premiumproduct-search'),

]

urlpatterns += router.urls
Esempio n. 12
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:expresscarrier-list'), reverse('api:expresscarrier-detail', kwargs={'pk': 1})
router.register(r'carrier_tracker', views.CarrierTrackerViewSet, base_name='carriertracker')

urlpatterns = [
    url(r'^carrier_tracker/autocomplete/$', views.CarrierTrackerAutocomplete.as_view(), name='carrier_tracker-autocomplete'),
]

urlpatterns += router.urls
Esempio n. 13
0
from django.conf.urls import url
from rest_framework.authtoken.views import obtain_auth_token
from core.api.routers import PostHackedRouter
from . import views

urlpatterns = [
    url(r'^register/verification_code/$',
        views.SendVerificationCode.as_view(),
        name='send_verification_code'),
    url(r'^profile/$', views.Profile.as_view(), name='profile'),
    url(r'^api-token-auth/', obtain_auth_token, name='login-token'),
]

router = PostHackedRouter()
router.include_root_view = False
router.register(r'seller', views.SellerViewSet, base_name='seller')

urlpatterns += router.urls
Esempio n. 14
0
from django.conf.urls import url
from core.api.routers import PostHackedRouter
from . import views

router = PostHackedRouter()
router.include_root_view = False

# reverse('api:answer-list'), reverse('api:answer-detail', kwargs={'pk': 1})
router.register(r'answer', views.AnswerViewSet, base_name='answer')
router.register(r'invitecode', views.InviteCodeViewSet, base_name='invitecode')

urlpatterns = [
    url(r'^answer/rotate/(?P<pk>\d+)/$',
        views.AnswerPicRotateView.as_view(),
        name="answer-rotate"),
]

urlpatterns += router.urls