rocketfuel = SimpleRouter() rocketfuel.register(r'collections', CollectionViewSet, base_name='collections') subcollections = SubRouterWithFormat() subcollections.register('image', CollectionImageViewSet, base_name='collection-image') apps = SimpleRouter() apps.register(r'preview', PreviewViewSet, base_name='app-preview') apps.register(r'validation', ValidationViewSet, base_name='app-validation') apps.register(r'category', CategoryViewSet, base_name='app-category') apps.register(r'status', StatusViewSet, base_name='app-status') apps.register(r'app', AppViewSet, base_name='app') subapps = SubRouter() subapps.register('refresh-manifest', RefreshManifestViewSet, base_name='app-refresh-manifest') subapps.register('privacy', PrivacyPolicyViewSet, base_name='app-privacy-policy') subapps.register('tags/(?P<tag_text>\w+)', AppTagViewSet, base_name='app-tags') services = SimpleRouter() if settings.ENABLE_API_ERROR_SERVICE: services.register(r'error', ErrorViewSet, base_name='error') services.register(r'carrier', CarrierViewSet, base_name='carriers') services.register(r'region', RegionViewSet, base_name='regions') services.register(r'price-tier', PriceTierViewSet, base_name='price-tier')
api_payments = SimpleRouter() api_payments.register(r'account', PaymentAccountViewSet, base_name='payment-account') api_payments.register(r'upsell', UpsellViewSet, base_name='app-upsell') api_payments.register(r'app', AddonPaymentAccountViewSet, base_name='app-payment-account') in_app_products = SimpleRouter() in_app_products.register(r'in-app', InAppProductViewSet, base_name='in-app-products') app_payments = SubRouter() app_payments.register(r'payments/status', PaymentCheckViewSet, base_name='app-payments-status') app_payments.register(r'payments/debug', PaymentDebugViewSet, base_name='app-payments-debug') payments_api_patterns = patterns( '', url(r'^payments/', include(api_payments.urls)), url(r'^payments/(?P<app_slug>[^\/]+)/', include(in_app_products.urls)), url(r'^apps/app/', include(app_payments.urls)), ) dev_api_patterns = patterns(
url('^test/$', views.testing, name='mkt.developers.apps.testing'), url('^test/receipts/', include(test_patterns)), )) api_payments = SimpleRouter() api_payments.register(r'account', PaymentAccountViewSet, base_name='payment-account') api_payments.register(r'upsell', UpsellViewSet, base_name='app-upsell') api_payments.register(r'app', AddonPaymentAccountViewSet, base_name='app-payment-account') in_app_products = SimpleRouter() in_app_products.register(r'in-app', InAppProductViewSet, base_name='in-app-products') app_payments = SubRouter() app_payments.register(r'payments', PaymentViewSet, base_name='app-payments') app_payments.register(r'payments/status', PaymentCheckViewSet, base_name='app-payments-status') app_payments.register(r'payments/debug', PaymentDebugViewSet, base_name='app-payments-debug') payments_api_patterns = patterns('', url(r'^payments/', include(api_payments.urls)), url(r'^payments/(?P<app_slug>[^\/]+)/', include(in_app_products.urls)), url(r'^apps/app/', include(app_payments.urls)), ) dev_api_patterns = patterns('', url(r'^apps/app/(?P<pk>[^/<>"\']+)/content-ratings/pingback/', ContentRatingsPingback.as_view(), name='content-ratings-pingback'),
rocketfuel = SimpleRouter() rocketfuel.register(r'collections', CollectionViewSet, base_name='collections') subcollections = SubRouterWithFormat() subcollections.register('image', CollectionImageViewSet, base_name='collection-image') apps = SimpleRouter() apps.register(r'preview', PreviewViewSet, base_name='app-preview') apps.register(r'validation', ValidationViewSet, base_name='app-validation') apps.register(r'category', CategoryViewSet, base_name='app-category') apps.register(r'status', StatusViewSet, base_name='app-status') apps.register(r'app', AppViewSet, base_name='app') subapps = SubRouter() subapps.register('refresh-manifest', RefreshManifestViewSet, base_name='app-refresh-manifest') subapps.register('privacy', PrivacyPolicyViewSet, base_name='app-privacy-policy') services = SimpleRouter() if settings.ENABLE_API_ERROR_SERVICE: services.register(r'error', ErrorViewSet, base_name='error') services.register(r'carrier', CarrierViewSet, base_name='carriers') services.register(r'region', RegionViewSet, base_name='regions') services.register(r'price-tier', PriceTierViewSet, base_name='price-tier') services.register(r'price-currency', PriceCurrencyViewSet,
url("^provider/", include(provider_patterns("provider"))), url("^test/$", views.testing, name="mkt.developers.apps.testing"), url("^test/receipts/", include(test_patterns)), ), ) api_payments = SimpleRouter() api_payments.register(r"account", PaymentAccountViewSet, base_name="payment-account") api_payments.register(r"upsell", UpsellViewSet, base_name="app-upsell") api_payments.register(r"app", AddonPaymentAccountViewSet, base_name="app-payment-account") api_payments.register(r"stub-in-app-products", StubInAppProductViewSet, base_name="stub-in-app-products") in_app_products = SimpleRouter() in_app_products.register(r"in-app", InAppProductViewSet, base_name="in-app-products") app_payments = SubRouter() app_payments.register(r"payments/status", PaymentCheckViewSet, base_name="app-payments-status") app_payments.register(r"payments/debug", PaymentDebugViewSet, base_name="app-payments-debug") payments_api_patterns = patterns( "", url(r"^payments/", include(api_payments.urls)), url(r"^payments/(?P<origin>(app|https?)://[^/]+)/", include(in_app_products.urls)), url(r"^apps/app/", include(app_payments.urls)), ) dev_api_patterns = patterns( "", url( r'^apps/app/(?P<pk>[^/<>"\']+)/content-ratings/pingback/', ContentRatingsPingback.as_view(),
rocketfuel = SimpleRouter() rocketfuel.register(r'collections', CollectionViewSet, base_name='collections') subcollections = SubRouterWithFormat() subcollections.register('image', CollectionImageViewSet, base_name='collection-image') apps = SimpleRouter() apps.register(r'preview', PreviewViewSet, base_name='app-preview') apps.register(r'validation', ValidationViewSet, base_name='app-validation') apps.register(r'category', CategoryViewSet, base_name='app-category') apps.register(r'status', StatusViewSet, base_name='app-status') apps.register(r'app', AppViewSet, base_name='app') subapps = SubRouter() subapps.register('refresh-manifest', RefreshManifestViewSet, base_name='app-refresh-manifest') subapps.register('privacy', PrivacyPolicyViewSet, base_name='app-privacy-policy') services = SimpleRouter() if settings.ENABLE_API_ERROR_SERVICE: services.register(r'error', ErrorViewSet, base_name='error') services.register(r'carrier', CarrierViewSet, base_name='carriers') services.register(r'region', RegionViewSet, base_name='regions') services.register(r'price-tier', PriceTierViewSet, base_name='price-tier')
from mkt.webapps.api import AppViewSet, PrivacyPolicyViewSet rocketfuel = SimpleRouter() rocketfuel.register(r"collections", CollectionViewSet, base_name="collections") subcollections = SubRouterWithFormat() subcollections.register("image", CollectionImageViewSet, base_name="collection-image") apps = SimpleRouter() apps.register(r"preview", PreviewViewSet, base_name="app-preview") apps.register(r"validation", ValidationViewSet, base_name="app-validation") apps.register(r"category", CategoryViewSet, base_name="app-category") apps.register(r"status", StatusViewSet, base_name="app-status") apps.register(r"app", AppViewSet, base_name="app") subapps = SubRouter() subapps.register("refresh-manifest", RefreshManifestViewSet, base_name="app-refresh-manifest") subapps.register("privacy", PrivacyPolicyViewSet, base_name="app-privacy-policy") services = SimpleRouter() if settings.ENABLE_API_ERROR_SERVICE: services.register(r"error", ErrorViewSet, base_name="error") services.register(r"carrier", CarrierViewSet, base_name="carriers") services.register(r"region", RegionViewSet, base_name="regions") services.register(r"price-tier", PriceTierViewSet, base_name="price-tier") services.register(r"price-currency", PriceCurrencyViewSet, base_name="price-currency") urlpatterns = patterns( "",