コード例 #1
0
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')
コード例 #2
0
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(
コード例 #3
0
ファイル: urls.py プロジェクト: AALEKH/zamboni
    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'),
コード例 #4
0
ファイル: urls.py プロジェクト: MorrisJobke/zamboni
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,
コード例 #5
0
ファイル: urls.py プロジェクト: rctgamer3/zamboni
        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(),
コード例 #6
0
ファイル: urls.py プロジェクト: lmorchard/zamboni
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')
コード例 #7
0
ファイル: urls.py プロジェクト: KKcorps/zamboni
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(
    "",