Exemplo n.º 1
0
    # Home
    url(r'^$', info_view, name='index'),
    url(r'^accounts/login/$', RedirectToUiLogin.as_view(), name='legacy_login_redirect'),

    # Admin URLs
    url(r'^staff/sidewide-actions$', SitewideActionFormView.as_view(), name='badgr_admin_sitewide_actions'),
    url(r'^staff/', include(badgr_admin.urls)),

    # Service health endpoint
    url(r'^health', include('health.urls')),

    # Swagger Docs
    #
    # api docs
    #
    url(r'^docs/oauth2/authorize$', DocsAuthorizeRedirect.as_view(), name='docs_authorize_redirect'),
    url(r'^docs/?$', RedirectView.as_view(url='/docs/v2/', permanent=True)),  # default redirect to /v2/
    url(r'^docs/', include('apispec_drf.urls')),

    # JSON-LD Context
    url(r'^json-ld/', include('badgrlog.urls')),

    # unversioned public endpoints
    url(r'^unsubscribe/(?P<email_encoded>[^/]+)/(?P<expiration>[^/]+)/(?P<signature>[^/]+)', email_unsubscribe, name='unsubscribe'),

    url(r'^public/', include('issuer.public_api_urls'), kwargs={'version': 'v2'}),
    url(r'^public/', include('pathway.public_api_urls'), kwargs={'version': 'v2'}),

    # legacy share redirects
    url(r'', include('backpack.share_urls')),
Exemplo n.º 2
0
    # Admin URLs
    url(r'^staff/sidewide-actions$',
        SitewideActionFormView.as_view(),
        name='badgr_admin_sitewide_actions'),
    url(r'^staff/', django2_include(badgr_admin.urls)),

    # Service health endpoint
    url(r'^health', include('health.urls')),

    # Swagger Docs
    #
    # api docs
    #
    url(r'^docs/oauth2/authorize$',
        DocsAuthorizeRedirect.as_view(),
        name='docs_authorize_redirect'),
    url(r'^docs/?$',
        RedirectView.as_view(url='/docs/v2/',
                             permanent=True)),  # default redirect to /v2/
    url(r'^docs/', include('apispec_drf.urls')),

    # JSON-LD Context
    url(r'^json-ld/', include('badgrlog.urls')),

    # unversioned public endpoints
    url(r'^unsubscribe/(?P<email_encoded>[^/]+)/(?P<expiration>[^/]+)/(?P<signature>[^/]+)',
        email_unsubscribe,
        name='unsubscribe'),
    url(r'^public/',
        include('issuer.public_api_urls'),
Exemplo n.º 3
0
    url(r'^$', info_view, name='index'),
    url(r'^accounts/login/$', RedirectToUiLogin.as_view(), name='legacy_login_redirect'),

    # Admin URLs
    url(r'^staff/sidewide-actions$', SitewideActionFormView.as_view(), name='badgr_admin_sitewide_actions'),
    url(r'^staff/', badgr_admin.urls),
    url(r'^staff/superlogin', auth_views.LoginView.as_view(), name ='badgr_admin_super_login'),

    # Service health endpoint
    url(r'^health', include('health.urls')),

    # Swagger Docs
    #
    # api docs
    #
    url(r'^docs/oauth2/authorize$', DocsAuthorizeRedirect.as_view(), name='docs_authorize_redirect'),
    url(r'^docs/?$', RedirectView.as_view(url='/docs/v2/', permanent=True)),  # default redirect to /v2/
    url(r'^docs/', include('apispec_drf.urls')),

    # JSON-LD Context
    url(r'^json-ld/', include('badgrlog.urls')),

    # unversioned public endpoints
    url(r'^unsubscribe/(?P<email_encoded>[^/]+)/(?P<expiration>[^/]+)/(?P<signature>[^/]+)', email_unsubscribe, name='unsubscribe'),

    url(r'^public/', include('issuer.public_api_urls'), kwargs={'version': 'v2'}),
    url(r'^public/', include('pathway.public_api_urls'), kwargs={'version': 'v2'}),

    # legacy share redirects
    url(r'', include('backpack.share_urls')),