コード例 #1
0
ファイル: urls.py プロジェクト: mgimle/onlineweb4
# -*- encoding: utf-8 -*-

from django.conf.urls import url

# API v1
from apps.api.utils import SharedAPIRootRouter
from apps.shop import views

urlpatterns = [
    url(r'^token/(?P<token>[\w-]+)/$',
        views.SetRFIDWebView.as_view(),
        name='shop_set_rfid'),
]

router = SharedAPIRootRouter()
router.register('orderline', views.OrderLineViewSet)
router.register('transactions', views.TransactionViewSet)
router.register('usersaldo', views.UserViewSet)
router.register('inventory', views.InventoryViewSet)
コード例 #2
0
ファイル: urls.py プロジェクト: tor0405/onlineweb4
from apps.api.utils import SharedAPIRootRouter
from apps.notifications import views

urlpatterns = []

router = SharedAPIRootRouter()

router.register(
    prefix="notifications/subscriptions",
    viewset=views.SubscriptionViewSet,
    basename="notifications_subscriptions",
)
router.register(
    prefix="notifications/messages",
    viewset=views.NotificationViewSet,
    basename="notifications_messages",
)
router.register(
    prefix="notifications/permissions",
    viewset=views.PermissionViewSet,
    basename="notifications_permissions",
)
router.register(
    prefix="notifications/user-permissions",
    viewset=views.UserPermissionViewSet,
    basename="notifications_user_permissions",
)
コード例 #3
0
from apps.api.utils import SharedAPIRootRouter

from .views import CommitteeApplicationViewSet

urlpatterns = []

# API v1
router = SharedAPIRootRouter()
router.register('committeeapplications',
                CommitteeApplicationViewSet,
                basename='committeeapplications')
コード例 #4
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.companyprofile import views

urlpatterns = [
    url(r'^(?P<company_id>\d+)/$', views.details, name='company_details'),
]

# API v1
router = SharedAPIRootRouter()
router.register('companies', views.CompanyViewSet, basename='companies')
コード例 #5
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.resourcecenter import views

urlpatterns = [
    url(r'^$', views.index, name='resourcecenter_index'),
]

router = SharedAPIRootRouter()
router.register('resources', views.HobbyViewSet)
コード例 #6
0
ファイル: urls.py プロジェクト: mariusaarsnes/onlineweb4
# -*- coding: utf-8 -*-
from apps.api.utils import SharedAPIRootRouter
from apps.payment import views

urlpatterns = []

# API v1
router = SharedAPIRootRouter()
router.register('payment/relations', views.PaymentRelationViewSet, basename='payment_relations')
router.register('payment/transactions', views.PaymentTransactionViewSet, basename='payment_transactions')
router.register('payment/prices', views.PaymentPriceReadOnlyViewSet, basename='payment_prices')
router.register('payment/delays', views.PaymentDelayReadOnlyViewSet, basename='payment_delays')
コード例 #7
0
from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.hobbygroups import views

urlpatterns = [url(r"^$", views.index, name="hobbygroups_index")]

router = SharedAPIRootRouter()
router.register("hobbys", views.HobbyViewSet)
コード例 #8
0
# -*- encoding: utf-8 -*-

# API v1
from apps.api.utils import SharedAPIRootRouter
from apps.chunksapi import views

urlpatterns = []

router = SharedAPIRootRouter()
router.register('chunks', views.ChunkViewSet)
コード例 #9
0
app_name = "sso"

urlpatterns = [
    url(r"^$", views.index, name="index"),
    url(r"^user/", endpoints.oauth2_provider_userinfo, name="user"),
    url(
        r"^authorize/",
        views.AuthorizationView.as_view(),
        name="oauth2_provider_authorize",
    ),
    url(r"^", include("oauth2_provider.urls", "oauth2_provider")),
]

router = SharedAPIRootRouter()
router.register("sso/public",
                views.SSOClientPublicViewSet,
                basename="sso_public")
router.register("sso/clients",
                views.SSOClientOwnViewSet,
                basename="sso_clients")
router.register(
    "sso/confidential",
    views.SSOClientConfidentialViewSet,
    basename="sso_clients_confidential",
)
router.register("sso/access", views.SSOAccessViewSet, basename="sso_access")
router.register("sso/refresh-tokens",
                views.SSORefreshTokenViewSet,
                basename="sso_refresh-tokens")
router.register("sso/grants", views.SSOGrantViewSet, basename="sso_grants")
router.register("sso/consents",
コード例 #10
0
ファイル: urls.py プロジェクト: lukehuang/andlarweb
from django.conf.urls import include, url

from apps.api.utils import SharedAPIRootRouter
from apps.articles import views as article_views

router = SharedAPIRootRouter()
router.register('articles', article_views.ArticleViewSet)

urlpatterns = [
    url(r'^articles/', include(router.urls)),
]
コード例 #11
0
ファイル: urls.py プロジェクト: mariusaarsnes/onlineweb4
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.resourcecenter import views

urlpatterns = [
    url(r'^$', views.index, name='resourcecenter_index'),
]

router = SharedAPIRootRouter()
router.register('resources', views.ResourceViewSet)
コード例 #12
0
    ),
    # Endpoint that exposes a json lump of all users but only id and name.
    url(
        r"^api_plain_user_search/$",
        views.api_plain_user_search,
        name="profiles_api_plain_user_search",
    ),
    # Endpoint that exposes a json lump of all users which have set their profile to public.
    url(r"^api_user_search/$", views.api_user_search, name="profiles_api_user_search"),
    url(r"^user_search/$", views.user_search, name="profiles_user_search"),
    # Profile index with active tab.
    url(r"^(?P<active_tab>\w+)/$", views.index, name="profiles_active"),
]

router = SharedAPIRootRouter()
router.register(
    "profile/search", views.PublicProfileSearchSet, basename="profile-search"
)
router.register("profile/orders", UserOrderViewSet, basename="profile-orders")
router.register(
    "profile/privacy", views.PersonalPrivacyView, basename="profile-privacy"
)
router.register("profile/marks", MarksViewSet, basename="profile-marks")
router.register(
    "profile/suspensions", SuspensionViewSet, basename="profile-suspensions"
)
router.register(
    "profile/emails", views.UserEmailAddressesViewSet, basename="profile-emails"
)
router.register("profile", views.ProfileViewSet, basename="profile")
コード例 #13
0
ファイル: urls.py プロジェクト: mgimle/onlineweb4
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.gallery import views
from apps.gallery.views import CropView, PresetView

urlpatterns = [
    url(r'^upload/$', views.upload, name='upload'),
    url(r'^unhandled/$', views.unhandled, name='unhandled'),
    url(r'^crop/$', CropView.as_view(), name='crop'),
    url(r'^all/', views.all_images, name='all'),
    url(r'^search/', views.search, name='search'),
    url(r'^preset/', PresetView.as_view(), name='preset'),
]

# API v1

router = SharedAPIRootRouter()
router.register(r'images', views.ResponsiveImageViewSet)
コード例 #14
0
urlpatterns = [
    url(r'^$', views.index, name='events_index'),
    url(r'^(?P<event_id>\d+)/attendees/$',
        views.generate_pdf,
        name='event_attendees_pdf'),
    url(r'^(?P<event_id>\d+)/attend/$', views.attendEvent,
        name='attend_event'),
    url(r'^(?P<event_id>\d+)/unattend/$',
        views.unattendEvent,
        name='unattend_event'),
    url(r'^(?P<event_id>\d+)/(?P<event_slug>[a-zA-Z0-9_-]+)/$',
        views.details,
        name='events_details'),
    url(r'^search/.*$', views.search_events, name="search_events"),
    url(r'^mail-participants/(?P<event_id>\d+)$',
        views.mail_participants,
        name="event_mail_participants"),
    # iCalendar
    url(r'^events.ics$', views.calendar_export, name='events_ics'),
    url(r'^(?P<event_id>\d+).ics$', views.calendar_export, name='event_ics'),
    url(r'^user/(?P<user>[\w:-]+).ics$',
        views.calendar_export,
        name='events_personal_ics'),
]

# API v1
router = SharedAPIRootRouter()
router.register('events', views.EventViewSet, base_name='events')
router.register('attendees', views.AttendeeViewSet, base_name='attendees')
router.register('attend', views.AttendViewSet, base_name='attend')
コード例 #15
0
ファイル: urls.py プロジェクト: tokongs/onlineweb4
# -*- encoding: utf-8 -*-

# API v1
from apps.api.utils import SharedAPIRootRouter
from apps.chunksapi import views

urlpatterns = []

router = SharedAPIRootRouter()
router.register("chunks", views.ChunkViewSet)
コード例 #16
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.article import views

urlpatterns = [
    url(r"^archive/$", views.archive, name="article_archive"),
    url(
        r"^(?P<article_id>\d+)/(?P<article_slug>[a-zA-Z0-9_-]+)/$",
        views.details,
        name="article_details",
    ),
    url(r"^tag/(?P<slug>[^\.]+)/", views.archive_tag, name="view_article_tag"),
    url(r"^year/(?P<year>\d+)/$",
        views.archive_year,
        name="article_archive_year"),
    url(
        r"^year/(?P<year>\d+)/month/(?P<month>[^\.]+)/$",
        views.archive_month,
        name="article_archive_month",
    ),
]

router = SharedAPIRootRouter()
router.register(r"articles", views.ArticleViewSet)
コード例 #17
0
ファイル: urls.py プロジェクト: mgimle/onlineweb4
from apps.api.utils import SharedAPIRootRouter
from apps.splash.api.views import SplashEventViewSet

urlpatterns = []

router = SharedAPIRootRouter()
router.register('splash-events', SplashEventViewSet)
コード例 #18
0
ファイル: urls.py プロジェクト: tokongs/onlineweb4
# -*- coding: utf-8 -*-
from apps.api.utils import SharedAPIRootRouter
from apps.payment import views

urlpatterns = []

# API v1
router = SharedAPIRootRouter()
router.register("payment/relations",
                views.PaymentRelationViewSet,
                basename="payment_relations")
router.register(
    "payment/transactions",
    views.PaymentTransactionViewSet,
    basename="payment_transactions",
)
router.register("payment/prices",
                views.PaymentPriceReadOnlyViewSet,
                basename="payment_prices")
router.register("payment/delays",
                views.PaymentDelayReadOnlyViewSet,
                basename="payment_delays")
コード例 #19
0
ファイル: urls.py プロジェクト: emilps/onlineweb4
    url(r'^api_plain_user_search/$',
        views.api_plain_user_search,
        name='profiles_api_plain_user_search'),

    # Endpoint that exposes a json lump of all users which have set their profile to public.
    url(r'^api_user_search/$',
        views.api_user_search,
        name='profiles_api_user_search'),
    url(r'^user_search/$', views.user_search, name='profiles_user_search'),

    # Profile index with active tab.
    url(r'^(?P<active_tab>\w+)/$', views.index, name='profiles_active'),
]

router = SharedAPIRootRouter()
router.register('profile/search',
                views.PublicProfileSearchSet,
                base_name='profile-search')
router.register('profile/orders', UserOrderViewSet, base_name='profile-orders')
router.register('profile/privacy',
                views.PersonalPrivacyView,
                base_name='profile-privacy')
router.register('profile/marks', MarksViewSet, base_name='profile-marks')
router.register('profile/suspensions',
                SuspensionViewSet,
                base_name='profile-suspensions')
router.register('profile/emails',
                views.UserEmailAddressesViewSet,
                base_name='profile-emails')
router.register('profile', views.ProfileViewSet, base_name='profile')
コード例 #20
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.article import views

urlpatterns = [
    url(r'^archive/$', views.archive, name='article_archive'),
    url(r'^(?P<article_id>\d+)/(?P<article_slug>[a-zA-Z0-9_-]+)/$',
        views.details,
        name='article_details'),
    url(r'^tag/(?P<slug>[^\.]+)/', views.archive_tag, name='view_article_tag'),
    url(r'^year/(?P<year>\d+)/$',
        views.archive_year,
        name='article_archive_year'),
    url(r'^year/(?P<year>\d+)/month/(?P<month>[^\.]+)/$',
        views.archive_month,
        name='article_archive_month'),
]

router = SharedAPIRootRouter()
router.register(r'articles', views.ArticleViewSet)
コード例 #21
0
from apps.api.utils import SharedAPIRootRouter
from apps.splash.api.views import SplashEventViewSet

urlpatterns = []

router = SharedAPIRootRouter()
router.register("splash-events", SplashEventViewSet)
コード例 #22
0
ファイル: urls.py プロジェクト: tokongs/onlineweb4
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.companyprofile import views

urlpatterns = [
    url(r"^(?P<company_id>\d+)/$", views.details, name="company_details")
]

# API v1
router = SharedAPIRootRouter()
router.register("companies", views.CompanyViewSet, basename="companies")
コード例 #23
0
ファイル: urls.py プロジェクト: mariusaarsnes/onlineweb4
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.authentication import views
from apps.authentication.api import views as api_views

urlpatterns = [
    url(r'^login/$', views.login, name='auth_login'),
    url(r'^logout/$', views.logout, name='auth_logout'),
    url(r'^register/$', views.register, name='auth_register'),
    url(r'^verify/(?P<token>\w+)/$', views.verify, name='auth_verify'),
    url(r'^recover/$', views.recover, name='auth_recover'),
    url(r'^set_password/(?P<token>\w+)/$', views.set_password, name='auth_set_password'),
]

# API v1
router = SharedAPIRootRouter()
router.register('users', api_views.UserViewSet, basename='users')
router.register('user/emails', api_views.EmailViewSet, basename='user_emails')
router.register('user/positions', api_views.PositionViewSet, basename='user_positions')
router.register('user/special-positions', api_views.SpecialPositionViewSet, basename='user_special_positions')
router.register('groups', api_views.GroupViewSet, basename='groups')
router.register('group/online-groups', api_views.OnlineGroupViewSet, basename='online_groups')
router.register('group/members', api_views.GroupMemberViewSet, basename='group_members')
router.register('group/roles', api_views.GroupRoleViewSet, basename='group_roles')
コード例 #24
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.careeropportunity import views

urlpatterns = [
    url(r'^$', views.index, name='careeropportunity_index'),
    url(r'^(\d+)/$', views.index, name='careeropportunity_details'),
]

# API v1
router = SharedAPIRootRouter()
router.register(r'career', views.CareerViewSet, base_name='careeropportunity')
コード例 #25
0
# -*- coding: utf-8 -*-
from apps.api.utils import SharedAPIRootRouter
from apps.marks import views

urlpatterns = []

# API v1
router = SharedAPIRootRouter()
router.register("marks/rule-sets",
                views.MarkRuleSetViewSet,
                basename="mark_rule_sets")
router.register("marks/acceptance",
                views.RuleAccpetanceViewSet,
                basename="mark_rule_acceptance")
コード例 #26
0
from apps.api.utils import SharedAPIRootRouter

from . import views

urlpatterns = []

router = SharedAPIRootRouter()
router.register("oidc/consent",
                views.UserConsentViewSet,
                basename="oidc_user_consent")
router.register("oidc/clients", views.ClientViewSet, basename="oidc_clients")
router.register("oidc/response-types",
                views.ResponseTypeViewSet,
                basename="oidc_response_types")
コード例 #27
0
ファイル: urls.py プロジェクト: mariusaarsnes/onlineweb4
# -*- coding: utf-8 -*-
from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.webshop import views

urlpatterns = [
    url(r'^$', views.Home.as_view(), name='webshop_home'),
    url(r'^category/(?P<slug>[-\w]+)/$', views.CategoryDetail.as_view(), name='webshop_category'),
    url(r'^product/(?P<slug>[-\w]+)/$', views.ProductDetail.as_view(), name='webshop_product'),
    url(r'^checkout/$', views.Checkout.as_view(), name='webshop_checkout'),
    url(r'^remove/$', views.RemoveOrder.as_view(), name='webshop_remove_orders'),
]

# API v1
router = SharedAPIRootRouter()
router.register('webshop/orders', views.OrderViewSet, basename='webshop_orders')
router.register('webshop/orderlines', views.OrderLineViewSet, basename='webshop_orderlines')
router.register('webshop/products', views.ProductViewSet, basename='webshop_products')
コード例 #28
0
from django.conf.urls import url

from apps.api.utils import SharedAPIRootRouter
from apps.mailinglists import views

urlpatterns = [url(r"^$", views.index, name="mailinglists_index")]

router = SharedAPIRootRouter()
router.register("mailinglists/groups",
                views.MailGroupViewSet,
                basename="mailinglists_groups")
router.register("mailinglists/entities",
                views.MailEntityViewSet,
                basename="mailinglists_entities")
コード例 #29
0
    url(r"^search/.*$", views.search_events, name="search_events"),
    url(
        r"^mail-participants/(?P<event_id>\d+)$",
        views.mail_participants,
        name="event_mail_participants",
    ),
    # iCalendar
    url(r"^events.ics$", views.calendar_export, name="events_ics"),
    url(r"^(?P<event_id>\d+).ics$", views.calendar_export, name="event_ics"),
    url(
        r"^user/(?P<user>[\w:-]+).ics$",
        views.calendar_export,
        name="events_personal_ics",
    ),
]

# API v1
router = SharedAPIRootRouter()
router.register("events", views.EventViewSet, basename="events")
router.register("attendees", views.AttendeeViewSet, basename="attendees")
router.register(
    prefix="registration/attendance-events",
    viewset=views.RegistrationAttendaceEventViewSet,
    basename="registration_attendance_events",
)
router.register(
    prefix="registration/user-attendees",
    viewset=views.RegistrationAttendeeViewSet,
    basename="registration_attendees",
)
コード例 #30
0
ファイル: urls.py プロジェクト: tokongs/onlineweb4
urlpatterns = [
    url(r"^$", views.Home.as_view(), name="webshop_home"),
    url(
        r"^category/(?P<slug>[-\w]+)/$",
        views.CategoryDetail.as_view(),
        name="webshop_category",
    ),
    url(
        r"^product/(?P<slug>[-\w]+)/$",
        views.ProductDetail.as_view(),
        name="webshop_product",
    ),
    url(r"^checkout/$", views.Checkout.as_view(), name="webshop_checkout"),
    url(r"^remove/$",
        views.RemoveOrder.as_view(),
        name="webshop_remove_orders"),
]

# API v1
router = SharedAPIRootRouter()
router.register("webshop/orders",
                views.OrderViewSet,
                basename="webshop_orders")
router.register("webshop/orderlines",
                views.OrderLineViewSet,
                basename="webshop_orderlines")
router.register("webshop/products",
                views.ProductViewSet,
                basename="webshop_products")