from __future__ import print_function, unicode_literals from django.conf.urls import patterns, url, include from rest_framework_bulk.routes import BulkRouter from .views import SimpleViewSet, UniqueTogetherViewSet router = BulkRouter() router.register('simple', SimpleViewSet, 'simple') router.register('unique-together', UniqueTogetherViewSet, 'unique-together') urlpatterns = patterns( '', url(r'^api/', include(router.urls, namespace='api')), )
from __future__ import print_function, unicode_literals from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from .views import SimpleViewSet app_name = 'test' router = BulkRouter() router.register('simple', SimpleViewSet, 'simple') urlpatterns = ( url(r'^api/', include((router.urls, 'test'), namespace='api')), )
#!/usr/bin/env python # -*- coding: utf-8 -*- # from django.urls import path from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'terminal' router = BulkRouter() router.register(r'sessions', api.SessionViewSet, 'session') router.register(r'terminal/(?P<terminal>[a-zA-Z0-9\-]{36})?/?status', api.StatusViewSet, 'terminal-status') router.register(r'terminal/(?P<terminal>[a-zA-Z0-9\-]{36})?/?sessions', api.SessionViewSet, 'terminal-sessions') router.register(r'terminal', api.TerminalViewSet, 'terminal') router.register(r'tasks', api.TaskViewSet, 'tasks') router.register(r'command', api.CommandViewSet, 'command') router.register(r'status', api.StatusViewSet, 'status') urlpatterns = [ path('sessions/<uuid:pk>/replay/', api.SessionReplayV2ViewSet.as_view({'get': 'retrieve', 'post': 'create'}), name='session-replay'), path('tasks/kill-session/', api.KillSessionAPI.as_view(), name='kill-session'), path('terminal/<uuid:terminal>/access-key/', api.TerminalTokenApi.as_view(), name='terminal-access-key'), path('terminal/config/', api.TerminalConfig.as_view(), name='terminal-config'), # v2: get session's replay # path('v2/sessions/<uuid:pk>/replay/', # api.SessionReplayV2ViewSet.as_view({'get': 'retrieve'}),
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # from __future__ import absolute_import from django.urls import path from rest_framework_bulk.routes import BulkRouter from authentication import api as auth_api from .. import api app_name = 'users' router = BulkRouter() router.register(r'users', api.UserViewSet, 'user') router.register(r'groups', api.UserGroupViewSet, 'user-group') urlpatterns = [ path('connection-token/', auth_api.UserConnectionTokenApi.as_view(), name='connection-token'), path('auth/', auth_api.UserAuthApi.as_view(), name='user-auth'), path('otp/auth/', auth_api.UserOtpAuthApi.as_view(), name='user-otp-auth'), path('profile/', api.UserProfileApi.as_view(), name='user-profile'), path('otp/reset/', api.UserResetOTPApi.as_view(), name='my-otp-reset'), path('users/<uuid:pk>/otp/reset/', api.UserResetOTPApi.as_view(), name='user-reset-otp'), path('users/<uuid:pk>/password/', api.UserChangePasswordApi.as_view(), name='change-user-password'), path('users/<uuid:pk>/password/reset/', api.UserResetPasswordApi.as_view(), name='user-reset-password'), path('users/<uuid:pk>/pubkey/reset/', api.UserResetPKApi.as_view(), name='user-public-key-reset'), path('users/<uuid:pk>/pubkey/update/', api.UserUpdatePKApi.as_view(), name='user-public-key-update'),
class AssessmentItemViewSet(BulkModelViewSet): queryset = AssessmentItem.objects.all() serializer_class = serializers.AssessmentItemSerializer router = routers.DefaultRouter(trailing_slash=False) router.register(r'license', LicenseViewSet) router.register(r'channel', ChannelViewSet) router.register(r'topictree', TopicTreeViewSet) router.register(r'node', NodeViewSet) router.register(r'exercise', ExerciseViewSet) router.register(r'file', FileViewSet) router.register(r'format', FormatViewSet) router.register(r'mimetype', MimeTypeViewSet) bulkrouter = BulkRouter(trailing_slash=False) bulkrouter.register(r'assessmentitem', AssessmentItemViewSet) urlpatterns = [ url(r'^$', views.base, name='base'), url(r'^test/', views.testpage, name='test'), url(r'^admin/', include(admin.site.urls)), url(r'^api/', include(router.urls)), url(r'^api/', include(bulkrouter.urls)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'exercises/$', views.exercise_list, name='exercise_list'), url(r'exercises/(?P<exercise_id>\w+)', views.exercise, name='exercise'), url(r'^file_upload/', views.file_upload, name="file_upload"), url(r'^accounts/logout/$', auth_views.logout, {'template_name': 'registration/logout.html'}), url(r'^accounts/', include('django.contrib.auth.urls')), url(r'^channels/$', views.channel_list, name='channels'),
from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from admin.auth.api.v1 import views router = BulkRouter() router.register(r'users', views.UserViewSet) urlpatterns = [ url(r'^', include(router.urls)), ]
from django.urls import path from . import views from django.conf.urls import include from rest_framework_bulk.routes import BulkRouter router = BulkRouter() router.register(r'books', views.BookViewSet) router.register(r'authors', views.AuthorViewSet) router.register(r'shelves', views.ShelfViewSet) router.register(r'copies', views.BookInstanceViewSet) urlpatterns = [ path('', views.index, name='index'), path('books/', views.BookListView.as_view(), name='books'), path('book/<int:pk>', views.BookDetailView.as_view(), name='book-detail'), path('mybooks/', views.LoanedBooksByUserListView.as_view(), name='my-borrowed'), path('api/', include(router.urls)), ]
from django.conf.urls import patterns, url, include from mercuryservices import views from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter #router = DefaultRouter() router = BulkRouter() router.register(r'cooperators', views.CooperatorViewSet, 'cooperators') router.register(r'bulkcooperators', views.CooperatorBulkUpdateViewSet) router.register(r'projects', views.ProjectViewSet, 'projects') router.register(r'bulkcooperators', views.CooperatorBulkUpdateViewSet) router.register(r'sites', views.SiteViewSet, 'sites') router.register(r'bulksites', views.SiteBulkUpdateViewSet) router.register(r'samples', views.FieldSampleViewSet, 'samples') router.register(r'bulksamples', views.FieldSampleBulkCreateUpdateViewSet) router.register(r'samplebottles', views.FieldSampleBottleViewSet, 'samplebottles') router.register(r'bulksamplebottles', views.FieldSampleBottleBulkCreateUpdateViewSet) router.register(r'bottles', views.BottleViewSet, 'bottles') router.register(r'bulkbottles', views.BottleBulkCreateUpdateViewSet) router.register(r'filters', views.FilterTypeViewSet) router.register(r'preservations', views.PreservationTypeViewSet) router.register(r'processings', views.ProcessingTypeViewSet) router.register(r'mediums', views.MediumTypeViewSet) router.register(r'units', views.UnitTypeViewSet) router.register(r'methods', views.MethodTypeViewSet) router.register(r'results', views.ResultViewSet) router.register(r'constituents', views.ConstituentTypeViewSet, 'constituents') router.register(r'qualityassurances', views.QualityAssuranceViewSet) router.register(r'detectionflags', views.DetectionFlagViewSet) router.register(r'isotopeflags', views.IsotopeFlagViewSet)
# -*- coding: utf-8 -*- # from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'tickets' router = BulkRouter() # router.register('tickets/request-asset-perm', api.RequestAssetPermTicketViewSet, 'ticket-request-asset-perm') router.register('tickets', api.TicketViewSet, 'ticket') router.register('tickets/(?P<ticket_id>[0-9a-zA-Z\-]{36})/comments', api.TicketCommentViewSet, 'ticket-comment') urlpatterns = [ ] urlpatterns += router.urls
from django.urls import path from .views import TodoViewSet from rest_framework_bulk.routes import BulkRouter from rest_framework import routers router = BulkRouter() router.register(r'', TodoViewSet, basename='todos') urlpatterns = router.urls
# coding: utf-8 # from django.urls import path, include from rest_framework_bulk.routes import BulkRouter from .. import api router = BulkRouter() router.register('application-permissions', api.ApplicationPermissionViewSet, 'application-permission') router.register('application-permissions-users-relations', api.ApplicationPermissionUserRelationViewSet, 'application-permissions-users-relation') router.register('application-permissions-user-groups-relations', api.ApplicationPermissionUserGroupRelationViewSet, 'application-permissions-user-groups-relation') router.register('application-permissions-applications-relations', api.ApplicationPermissionApplicationRelationViewSet, 'application-permissions-application-relation') router.register('application-permissions-system-users-relations', api.ApplicationPermissionSystemUserRelationViewSet, 'application-permissions-system-users-relation') user_permission_urlpatterns = [ path('<uuid:pk>/applications/', api.UserAllGrantedApplicationsApi.as_view(), name='user-applications'), path('applications/', api.MyAllGrantedApplicationsApi.as_view(), name='my-applications'), # Application As Tree path('<uuid:pk>/applications/tree/', api.UserAllGrantedApplicationsAsTreeApi.as_view(), name='user-applications-as-tree'), path('applications/tree/', api.MyAllGrantedApplicationsAsTreeApi.as_view(), name='my-applications-as-tree'), # Application System Users path('<uuid:pk>/applications/<uuid:application_id>/system-users/', api.UserGrantedApplicationSystemUsersApi.as_view(), name='user-application-system-users'), path('applications/<uuid:application_id>/system-users/', api.MyGrantedApplicationSystemUsersApi.as_view(), name='my-application-system-users'), ] user_group_permission_urlpatterns = [ path('<uuid:pk>/applications/', api.UserGroupGrantedApplicationsApi.as_view(), name='user-group-applications'), ]
from django.conf.urls import url, include from rest_framework import routers from rest_framework_bulk.routes import BulkRouter from .. import api # router = routers.DefaultRouter() router = BulkRouter() router.register(r'v1/service', api.ServiceViewSet, 'service') app_name = 'business' urlpatterns = [] urlpatterns += router.urls
""" Define urls for api/v1 """ from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from seven23.api.changes.views import ApiChange ROUTER = BulkRouter(trailing_slash=False) ROUTER.register(r'^', ApiChange, basename='changes') urlpatterns = ROUTER.urls
from django.conf.urls import url, include from rest_framework import routers from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'crondtask' router = BulkRouter() router.register(r'v1/crontab', api.CrontabViewSet, 'crontab') router.register(r'v1/interval', api.IntervalViewSet, 'interval') router.register(r'v1/periodic', api.PeriodicTasksViewSet, 'periodic') # router.register(r'v1/solar',api.SolarScheduleViewSet,'solar') urlpatterns = [ # url(r'^v1/instance-bulk/$',api.InstanceUpdateAPI.as_view(),'instance-bulk-update'), ] urlpatterns += router.urls
from typing import Any import credentials.views import exchanges.views import robots.views import strategies.views import users.views from django.conf import settings from django.urls import include, path from rest_framework.routers import DefaultRouter, SimpleRouter from rest_framework_bulk.routes import BulkRouter if settings.DEBUG: # Why type as Any? # See: https://mypy.readthedocs.io/en/stable/common_issues.html#redefinitions-with-incompatible-types router: Any = BulkRouter() else: router = SimpleRouter() router.register("users", users.views.UserViewSet, basename="user") router.register("robots", robots.views.RobotViewSet, basename="robot") router.register( "strategies", strategies.views.StrategyViewSet, basename="strategy", ) router.register("exchanges", exchanges.views.ExchangeViewSet, basename="exchange") router.register("credentials", credentials.views.CredentialViewSet,
# coding:utf-8 from django.conf.urls import url from .. import api from rest_framework_bulk.routes import BulkRouter app_name = 'assets' router = BulkRouter() router.register(r'v1/groups', api.AssetGroupViewSet, 'asset-group') router.register(r'v1/assets', api.AssetViewSet, 'asset') router.register(r'v1/clusters', api.ClusterViewSet, 'cluster') router.register(r'v1/admin-user', api.AdminUserViewSet, 'admin-user') router.register(r'v1/system-user', api.SystemUserViewSet, 'system-user') urlpatterns = [ url(r'^v1/assets-bulk/$', api.AssetListUpdateApi.as_view(), name='asset-bulk-update'), url(r'^v1/system-user/(?P<pk>[0-9a-zA-Z\-]{36})/auth-info/', api.SystemUserAuthInfoApi.as_view(), name='system-user-auth-info'), url(r'^v1/assets/(?P<pk>[0-9a-zA-Z\-]{36})/refresh/$', api.AssetRefreshHardwareApi.as_view(), name='asset-refresh'), url(r'^v1/assets/(?P<pk>[0-9a-zA-Z\-]{36})/alive/$', api.AssetAdminUserTestApi.as_view(), name='asset-alive-test'), url(r'^v1/assets/user-assets/$', api.UserAssetListView.as_view(), name='user-asset-list'), # update the asset group, which add or delete the asset to the group url(r'^v1/groups/(?P<pk>[0-9a-zA-Z\-]{36})/assets/$', api.GroupUpdateAssetsApi.as_view(), name='group-update-assets'), url(r'^v1/groups/(?P<pk>[0-9a-zA-Z\-]{36})/assets/add/$', api.GroupAddAssetsApi.as_view(), name='group-add-assets'), # update the Cluster, and add or delete the assets to the Cluster
# coding:utf-8 # from django.urls import path, re_path from rest_framework_bulk.routes import BulkRouter from common import api as capi from .. import api app_name = 'applications' router = BulkRouter() router.register(r'applications', api.ApplicationViewSet, 'application') router.register(r'remote-apps', api.RemoteAppViewSet, 'remote-app') router.register(r'database-apps', api.DatabaseAppViewSet, 'database-app') router.register(r'k8s-apps', api.K8sAppViewSet, 'k8s-app') urlpatterns = [ path('remote-apps/<uuid:pk>/connection-info/', api.RemoteAppConnectionInfoApi.as_view(), name='remote-app-connection-info'), ] old_version_urlpatterns = [ re_path('(?P<resource>remote-app)/.*', capi.redirect_plural_name_api) ] urlpatterns += router.urls + old_version_urlpatterns
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.urls import url, include from django.conf import settings from rest_framework_bulk.routes import BulkRouter from rest_framework_nested import routers as nested_routers from . import views # Register /sites as a top-level resource router = BulkRouter(trailing_slash=settings.APPEND_SLASH) router.register(r'sites', views.SiteViewSet) # Nested router for resources under /sites sites_router = nested_routers.NestedSimpleRouter( router, r'sites', lookup='site', trailing_slash=settings.APPEND_SLASH ) # Map nested router to bulk put/patch operations sites_router.routes[0].mapping.update({ 'put': 'bulk_update', 'patch': 'partial_bulk_update', 'delete': 'bulk_destroy', }) # Resources that are nested under /sites sites_router.register(r'attributes', views.AttributeViewSet) sites_router.register(r'changes', views.ChangeViewSet) sites_router.register(r'devices', views.DeviceViewSet)
# -*- coding: utf-8 -*- # from django.urls import re_path from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter from common import api as capi from .. import api app_name = 'orgs' router = DefaultRouter() bulk_router = BulkRouter() router.register(r'orgs', api.OrgViewSet, 'org') bulk_router.register(r'org-member-relation', api.OrgMemberRelationBulkViewSet, 'org-member-relation') router.register(r'orgs/(?P<org_id>[0-9a-zA-Z\-]{36})/membership/admins', api.OrgMemberAdminRelationBulkViewSet, 'membership-admins') router.register(r'orgs/(?P<org_id>[0-9a-zA-Z\-]{36})/membership/users', api.OrgMemberUserRelationBulkViewSet, 'membership-users'), old_version_urlpatterns = [ re_path('(?P<resource>org)/.*', capi.redirect_plural_name_api) ] urlpatterns = router.urls + bulk_router.urls + old_version_urlpatterns
from django.conf.urls import patterns, url, include from mercuryservices import views from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter #router = DefaultRouter() router = BulkRouter() router.register(r'acids', views.AcidViewSet, 'acids') router.register(r'analyses', views.AnalysisTypeViewSet, 'analyses') router.register(r'blankwaters', views.BlankWaterViewSet, 'blankwaters') router.register(r'bottles', views.BottleViewSet, 'bottles') router.register(r'bottleprefixes', views.BottlePrefixViewSet, 'bottleprefixes') router.register(r'bottletypes', views.BottleTypeViewSet, 'bottletypes') router.register(r'brominations', views.BrominationViewSet, 'brominations') router.register(r'constituents', views.ConstituentTypeViewSet, 'constituents') router.register(r'cooperators', views.CooperatorViewSet, 'cooperators') router.register(r'detectionflags', views.DetectionFlagViewSet, 'detectionflags') router.register(r'filters', views.FilterTypeViewSet, 'filters') router.register(r'isotopeflags', views.IsotopeFlagViewSet, 'isotopeflags') router.register(r'mediums', views.MediumTypeViewSet, 'mediums') router.register(r'methods', views.MethodTypeViewSet, 'methods') router.register(r'preservations', views.PreservationTypeViewSet, 'preservations') router.register(r'projects', views.ProjectViewSet, 'projects') router.register(r'projectssites', views.ProjectSiteViewSet, 'projectssites') router.register(r'processings', views.ProcessingTypeViewSet, 'processings') router.register(r'qualityassurances', views.QualityAssuranceViewSet, 'qualityassurances') router.register(r'qualityassurancetypes', views.QualityAssuranceTypeViewSet, 'qualityassurancetypes') router.register(r'results', views.ResultViewSet, 'results') router.register(r'resultdatafiles', views.ResultDataFileViewSet, 'resultdatafiles')
# coding:utf-8 from django.urls import path, re_path from rest_framework_nested import routers # from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter, SimpleRouter from common import api as capi from .. import api app_name = 'cis' router = BulkRouter() router.register(r'cis', api.JenkinsViewSet, basename='ci') urlpatterns = [ path('cis/<str:name>/<int:version>/log', api.JenkinsViewSet.as_view({'get': 'log'}), name='ci-log'), ] urlpatterns += router.urls
from __future__ import print_function, unicode_literals from django.conf.urls import patterns, url, include from rest_framework_bulk.routes import BulkRouter from .views import SimpleViewSet router = BulkRouter() router.register('simple', SimpleViewSet, 'simple') urlpatterns = patterns( '', url(r'^api/', include(router.urls, namespace='api')), )
# -*- coding: utf-8 -*- # from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'tickets' router = BulkRouter() router.register('tickets/request-asset-perm/assignees', api.AssigneeViewSet, 'ticket-request-asset-perm-assignee') router.register('tickets/request-asset-perm', api.RequestAssetPermTicketViewSet, 'ticket-request-asset-perm') router.register('tickets', api.TicketViewSet, 'ticket') router.register('tickets/(?P<ticket_id>[0-9a-zA-Z\-]{36})/comments', api.TicketCommentViewSet, 'ticket-comment') urlpatterns = [] urlpatterns += router.urls
router = routers.DefaultRouter(trailing_slash=False) router.register(r'license', LicenseViewSet) router.register(r'language', LanguageViewSet) router.register(r'channel', ChannelViewSet) router.register(r'channelset', ChannelSetViewSet) router.register(r'fileformat', FileFormatViewSet) router.register(r'preset', FormatPresetViewSet) router.register(r'tag', TagViewSet) router.register(r'contentkind', ContentKindViewSet) router.register(r'task', TaskViewSet) router.register(r'user', UserViewSet) router.register(r'invitation', InvitationViewSet) bulkrouter = BulkRouter(trailing_slash=False) bulkrouter.register(r'assessmentitem', AssessmentItemViewSet) bulkrouter.register(r'contentnode', ContentNodeViewSet) bulkrouter.register(r'file', FileViewSet) urlpatterns = [ url(r'^$', views.base, name='base'), url(r'^admin/', include(admin.site.urls)), url(r'^api/', include(router.urls)), url(r'^api/', include(bulkrouter.urls)), url(r'^api/publish_channel/$', views.publish_channel, name='publish_channel'), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^channels/$', views.channel_list, name='channels'), url(r'^(?P<channel_id>[^/]+)/edit', views.redirect_to_channel_edit, name='redirect_to_channel_edit'), url(r'^(?P<channel_id>[^/]+)/view', views.redirect_to_channel_view, name='redirect_to_channel_view'), url(r'^channels/(?P<channel_id>[^/]{32})/?$', views.redirect_to_channel, name='redirect_to_channel'),
""" @author: sun @license: (C) Copyright 2016-2019, Light2Cloud (Beijing) Web Service Co., LTD @contact: [email protected] @software: L2CloudCMP @file: api_urls.py @ide: PyCharm @time: 2019/12/20 12:10 @desc: """ from django.urls import path from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'authentication' router = BulkRouter() router.register(r'access-keys', api.AccessKeyViewSet, 'access-key') urlpatterns = [ path('access-keys/<uuid:pk>/user/', api.AccessKeyListView.as_view(), name='access-key-list'), path('sms/', api.SMSCreateApi.as_view(), name='sms'), path('tokens/', api.TokenCreateApi.as_view(), name='auth-token'), path('mfa/challenge/', api.MFAChallengeApi.as_view(), name='mfa-challenge'), path('connection-token/', api.UserConnectionTokenApi.as_view(), name='connection-token'), path('otp/verify/', api.UserOtpVerifyApi.as_view(), name='user-otp-verify'),
""" Define urls for api/v1 """ from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from seven23 import settings from seven23.api.categories.views import ApiCategories ROUTER = BulkRouter(trailing_slash=False) ROUTER.register(r'^', ApiCategories, base_name='categories') urlpatterns = ROUTER.urls
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # from __future__ import absolute_import from django.urls import path, include from rest_framework_bulk.routes import BulkRouter from ..api import v2 as api app_name = 'users' router = BulkRouter() router.register(r'service-account-registrations', api.ServiceAccountRegistrationViewSet, 'service-account-registration') urlpatterns = [ # path('token/', api.UserToken.as_view(), name='user-token'), ] urlpatterns += router.urls
# coding:utf-8 from django.urls import path from rest_framework_nested import routers # from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'assets' router = BulkRouter() router.register(r'assets', api.AssetViewSet, 'asset') router.register(r'admin-user', api.AdminUserViewSet, 'admin-user') router.register(r'system-user', api.SystemUserViewSet, 'system-user') router.register(r'labels', api.LabelViewSet, 'label') router.register(r'nodes', api.NodeViewSet, 'node') router.register(r'domain', api.DomainViewSet, 'domain') router.register(r'gateway', api.GatewayViewSet, 'gateway') router.register(r'cmd-filter', api.CommandFilterViewSet, 'cmd-filter') router.register(r'asset-user', api.AssetUserViewSet, 'asset-user') router.register(r'projects', api.ProjectViewSet, 'project') router.register(r'projects-assets', api.ProjectAssetsViewSet, 'project-assets-view') cmd_filter_router = routers.NestedDefaultRouter(router, r'cmd-filter', lookup='filter') cmd_filter_router.register(r'rules', api.CommandFilterRuleViewSet, 'cmd-filter-rule') urlpatterns = [
class AssessmentItemViewSet(BulkModelViewSet): queryset = AssessmentItem.objects.all() serializer_class = serializers.AssessmentItemSerializer router = routers.DefaultRouter(trailing_slash=False) router.register(r'license', LicenseViewSet) router.register(r'language', LanguageViewSet) router.register(r'channel', ChannelViewSet) router.register(r'fileformat', FileFormatViewSet) router.register(r'preset', FormatPresetViewSet) router.register(r'tag', TagViewSet) router.register(r'contentkind', ContentKindViewSet) router.register(r'user', UserViewSet) router.register(r'invitation', InvitationViewSet) bulkrouter = BulkRouter(trailing_slash=False) bulkrouter.register(r'assessmentitem', AssessmentItemViewSet) bulkrouter.register(r'contentnode', ContentNodeViewSet) bulkrouter.register(r'file', FileViewSet) urlpatterns = [ url(r'^$', views.base, name='base'), url(r'^admin/', include(admin.site.urls)), url(r'^api/', include(router.urls)), url(r'^api/', include(bulkrouter.urls)), url(r'^api/publish_channel/$', views.publish_channel, name='publish_channel'), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^channels/$', views.channel_list, name='channels'), url(r'^(?P<channel_id>[^/]+)/edit', views.redirect_to_channel_edit, name='redirect_to_channel_edit'), url(r'^(?P<channel_id>[^/]+)/view', views.redirect_to_channel_view, name='redirect_to_channel_view'), url(r'^channels/(?P<channel_id>[^/]+)/?$', views.redirect_to_channel, name='redirect_to_channel'),
# coding:utf-8 from django.urls import path, re_path from rest_framework_nested import routers # from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter from common import api as capi from .. import api app_name = 'assets' router = BulkRouter() router.register(r'assets', api.AssetViewSet, 'asset') router.register(r'platforms', api.AssetPlatformViewSet, 'platform') router.register(r'admin-users', api.AdminUserViewSet, 'admin-user') router.register(r'system-users', api.SystemUserViewSet, 'system-user') router.register(r'labels', api.LabelViewSet, 'label') router.register(r'nodes', api.NodeViewSet, 'node') router.register(r'domains', api.DomainViewSet, 'domain') router.register(r'gateways', api.GatewayViewSet, 'gateway') router.register(r'cmd-filters', api.CommandFilterViewSet, 'cmd-filter') router.register(r'asset-users', api.AssetUserViewSet, 'asset-user') router.register(r'asset-user-auth-infos', api.AssetUserAuthInfoViewSet, 'asset-user-auth-info') router.register(r'gathered-users', api.GatheredUserViewSet, 'gathered-user') router.register(r'favorite-assets', api.FavoriteAssetViewSet, 'favorite-asset') router.register(r'system-users-assets-relations', api.SystemUserAssetRelationViewSet, 'system-users-assets-relation')
from rest_framework_bulk.routes import BulkRouter from . import views router = BulkRouter() router.register('pilots', views.PilotBulkViewSet, basename='pilots-bulk') router.register( 'spaceships', views.SpaceshipBulkViewSet, basename='spaceships-bulk', ) urlpatterns = router.urls
# coding:utf-8 from django.conf.urls import url from .. import api from rest_framework import routers from rest_framework_bulk.routes import BulkRouter app_name = 'assets' router = BulkRouter() router.register(r'v1/asset-groups', api.AssetGroupViewSet, 'asset-group') router.register(r'v1/assets', api.AssetViewSet, 'asset') router.register(r'v1/idc', api.IDCViewSet, 'idc') router.register(r'v1/admin-user', api.AdminUserViewSet, 'admin-user') router.register(r'v1/system-user', api.SystemUserViewSet, 'system-user') urlpatterns = [ url(r'^v1/assets_bulk/$', api.AssetListUpdateApi.as_view(), name='asset-bulk-update'), url(r'^v1/system-user/(?P<pk>[0-9]+)/auth-info/', api.SystemUserAuthInfoApi.as_view(), name='system-user-auth-info'), url(r'^v1/assets/(?P<pk>\d+)/groups/$', api.AssetUpdateGroupApi.as_view(), name='asset-update-group'), url(r'^v1/assets/(?P<pk>\d+)/refresh/$', api.AssetRefreshHardwareView.as_view(), name='asset-refresh'), url(r'^v1/assets/(?P<pk>\d+)/admin-user-test/$', api.AssetAdminUserTestView.as_view(), name='asset-admin-user-test'),
from django.conf.urls import url, include from django.contrib.auth.views import logout_then_login from django.conf import settings from .views import views from .views.api import roles, servers, users, user_roles, tournaments, fights, discord_roles, points_submissions, diep_tanks, mastery, quests from rest_framework_bulk.routes import BulkRouter from django.views.decorators.cache import cache_page router = BulkRouter(trailing_slash=False) router.register(r'roles', roles.RolesViewSet) router.register(r'badgeroles', roles.SunKnightsBadgeRoleViewSet) router.register(r'servers', servers.ServersViewSet) router.register(r'users', users.ClanUsersViewSet, 'users') router.register(r'usersfast', users.ClanUsersShortSet) router.register(r'pointsinfo', users.ClanUserPointsInfoViewSet) router.register(r'leaderboard', users.ClanUserLeaderboardViewSet, 'leaderboard') router.register(r'userpointssubmission', points_submissions.BasicUserPointSubmissionViewSet) router.register(r'eventquestssubmission', points_submissions.BasicEventQuestsSubmissionViewSet) router.register(r'oneoneonefightssubmission', points_submissions.BasicFightsSubmissionViewSet) router.register(r'managerpointsaction', points_submissions.PointsManagerActionViewSet) router.register(r'userroles', user_roles.UserRolesViewSet) router.register(r'tournaments', tournaments.TournamentsViewSet) router.register(r'tournamentsfightsconnectors', tournaments.TournamentsFightsConnectorViewSet) router.register(r'guildfights', fights.GuildFightsViewSet)
from django.conf.urls import url, include from ezdict.translation.views import TranslationView, LanguageView, SuggestedMeaningView from ezdict.translation_history.views import TranslationHistoryViewSet from ezdict.card.views import CardViewSet, CardMeaningViewSet, CardToStudyViewSet from ezdict.user_profile.views import UserProfileView from ezdict.quiz.views import QuizViewSet, QuizAnswerViewSet from rest_framework_bulk.routes import BulkRouter router = BulkRouter() router.register(r'translation_history', TranslationHistoryViewSet) router.register(r'cards', CardViewSet) router.register(r'card_meanings', CardMeaningViewSet) router.register(r'cards_to_study', CardToStudyViewSet) router.register(r'quizzes', QuizViewSet, base_name='quiz') router.register(r'quiz_answers', QuizAnswerViewSet, base_name='quiz_answer') # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ url(r'^', include(router.urls)), url(r'^docs/', include('rest_framework_swagger.urls')), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^user/', include('djoser.urls')), url(r'^profile/$', UserProfileView.as_view(), name='user_profile'), url(r'^translation/$', TranslationView.as_view(), name='translation'), url(r'^suggested_meanings/$', SuggestedMeaningView.as_view(), name='suggested_meanings'), url(r'^languages/$', LanguageView.as_view(), name='languages'), ]
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # from __future__ import absolute_import from django.conf.urls import url from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'users' router = BulkRouter() router.register(r'v1/users', api.UserViewSet, 'user') router.register(r'v1/groups', api.UserGroupViewSet, 'user-group') urlpatterns = [ # url(r'', api.UserListView.as_view()), url(r'^v1/token/$', api.UserToken.as_view(), name='user-token'), url(r'^v1/profile/$', api.UserProfile.as_view(), name='user-profile'), url(r'^v1/auth/$', api.UserAuthApi.as_view(), name='user-auth'), url(r'^v1/users/(?P<pk>\d+)/password/reset/$', api.UserResetPasswordApi.as_view(), name='user-reset-password'), url(r'^v1/users/(?P<pk>\d+)/pubkey/reset/$', api.UserResetPKApi.as_view(), name='user-public-key-reset'), url(r'^v1/users/(?P<pk>\d+)/pubkey/update/$', api.UserUpdatePKApi.as_view(), name='user-public-key-update'), url(r'^v1/users/(?P<pk>\d+)/groups/$', api.UserUpdateGroupApi.as_view(),
""" Define urls for api/v1 """ from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from seven23 import settings from seven23.api.debitscredits.views import ApiDebitscredits ROUTER = BulkRouter(trailing_slash=False) ROUTER.register(r'^', ApiDebitscredits, base_name='debitscredits') urlpatterns = ROUTER.urls
#!/usr/bin/env python # -*- coding: utf-8 -*- # from django.urls import path, re_path from rest_framework_bulk.routes import BulkRouter from common import api as capi from .. import api_v2 as api app_name = 'terminal' router = BulkRouter() router.register(r'terminals', api.TerminalViewSet, 'terminal') urlpatterns = [ path('terminal-registrations/', api.TerminalRegistrationApi.as_view(), name='terminal-registration') ] old_version_urlpatterns = [ re_path('(?P<resource>terminal)/.*', capi.redirect_plural_name_api) ] urlpatterns += router.urls
from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from admin.tag.api.v1 import views router = BulkRouter() router.register(r"tree-tags", views.TreeTagViewSet) router.register(r"tags", views.TagViewSet) urlpatterns = [url(r"^", include(router.urls))]
from django.urls import path from django.conf.urls import url, include from django.views.generic.base import TemplateView from merlinservices import views from rest_framework.routers import DefaultRouter from rest_framework.schemas import get_schema_view from rest_framework_bulk.routes import BulkRouter #router = DefaultRouter() router = BulkRouter() router.register(r'acids', views.AcidViewSet, 'acids') router.register(r'analyses', views.AnalysisTypeViewSet, 'analyses') router.register(r'blankwaters', views.BlankWaterViewSet, 'blankwaters') router.register(r'bottles', views.BottleViewSet, 'bottles') router.register(r'bottleprefixes', views.BottlePrefixViewSet, 'bottleprefixes') router.register(r'bottletypes', views.BottleTypeViewSet, 'bottletypes') router.register(r'brominations', views.BrominationViewSet, 'brominations') router.register(r'constituents', views.ConstituentTypeViewSet, 'constituents') router.register(r'cooperators', views.CooperatorViewSet, 'cooperators') router.register(r'detectionflags', views.DetectionFlagViewSet, 'detectionflags') router.register(r'filters', views.FilterTypeViewSet, 'filters') router.register(r'isotopeflags', views.IsotopeFlagViewSet, 'isotopeflags') router.register(r'mediums', views.MediumTypeViewSet, 'mediums') router.register(r'methods', views.MethodTypeViewSet, 'methods') router.register(r'preservations', views.PreservationTypeViewSet, 'preservations') router.register(r'projects', views.ProjectViewSet, 'projects') router.register(r'projectssites', views.ProjectSiteViewSet, 'projectssites') router.register(r'processings', views.ProcessingTypeViewSet, 'processings')
# coding:utf-8 from django.urls import path from rest_framework_nested import routers # from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'assets' router = BulkRouter() router.register(r'assets', api.AssetViewSet, 'asset') router.register(r'admin-user', api.AdminUserViewSet, 'admin-user') router.register(r'system-user', api.SystemUserViewSet, 'system-user') router.register(r'labels', api.LabelViewSet, 'label') router.register(r'nodes', api.NodeViewSet, 'node') router.register(r'domain', api.DomainViewSet, 'domain') router.register(r'gateway', api.GatewayViewSet, 'gateway') router.register(r'cmd-filter', api.CommandFilterViewSet, 'cmd-filter') router.register(r'asset-user', api.AssetUserViewSet, 'asset-user') cmd_filter_router = routers.NestedDefaultRouter(router, r'cmd-filter', lookup='filter') cmd_filter_router.register(r'rules', api.CommandFilterRuleViewSet, 'cmd-filter-rule') urlpatterns = [ path('assets-bulk/', api.AssetListUpdateApi.as_view(), name='asset-bulk-update'), path('asset/update/select/', api.AssetBulkUpdateSelectAPI.as_view(), name='asset-bulk-update-select'), path('assets/<uuid:pk>/refresh/', api.AssetRefreshHardwareApi.as_view(), name='asset-refresh'),
from django.conf.urls import url, include from rest_framework import routers from rest_framework_bulk.routes import BulkRouter from .. import api # router = routers.DefaultRouter() router = BulkRouter() router.register(r'v1/httpmonitor', api.HttpMonitorViewSet, 'http') router.register(r'v1/httpgroup', api.HttpMonitorGroupViewSet, 'http-group') router.register(r'v1/httpalarmpolicy', api.HttpAlarmPolicyViewSet, 'http-alarmpolicy') router.register(r'v1/httpenv', api.HttpEnvViewSet, 'http-env') app_name = 'monitor' urlpatterns = [] urlpatterns += router.urls
# coding:utf-8 # from django.urls import path from rest_framework_bulk.routes import BulkRouter from .. import api app_name = 'applications' router = BulkRouter() router.register(r'remote-app', api.RemoteAppViewSet, 'remote-app') urlpatterns = [ path('remote-apps/<uuid:pk>/connection-info/', api.RemoteAppConnectionInfoApi.as_view(), name='remote-app-connection-info') ] urlpatterns += router.urls
# coding:utf-8 from django.urls import path, include from rest_framework_bulk.routes import BulkRouter from .. import api router = BulkRouter() router.register('asset-permissions', api.AssetPermissionViewSet, 'asset-permission') router.register('asset-permissions-users-relations', api.AssetPermissionUserRelationViewSet, 'asset-permissions-users-relation') router.register('asset-permissions-user-groups-relations', api.AssetPermissionUserGroupRelationViewSet, 'asset-permissions-user-groups-relation') router.register('asset-permissions-assets-relations', api.AssetPermissionAssetRelationViewSet, 'asset-permissions-assets-relation') router.register('asset-permissions-nodes-relations', api.AssetPermissionNodeRelationViewSet, 'asset-permissions-nodes-relation') router.register('asset-permissions-system-users-relations', api.AssetPermissionSystemUserRelationViewSet, 'asset-permissions-system-users-relation') user_permission_urlpatterns = [ path('<uuid:pk>/assets/', api.UserGrantedAssetsApi.as_view(), name='user-assets'), path('assets/', api.UserGrantedAssetsApi.as_view(), name='my-assets'),
from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from admin.friend.api.v1 import views router = BulkRouter() router.register(r'phone-contact-records', views.PhoneContactRecordViewSet) urlpatterns = [ url(r'^', include(router.urls)), ]
""" from django.contrib import admin from django.urls import include, path from rest_framework_bulk.routes import BulkRouter import credentials.views import exchanges.views import robots.views import strategies.views import users.views from core.views import IndexView from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi router = BulkRouter() router.register("users", users.views.UserViewSet, basename="user") router.register("robots", robots.views.RobotViewSet, basename="robot") router.register( "strategy-templates", strategies.views.StrategyTemplateViewSet, basename="strategy-template", ) router.register("exchanges", exchanges.views.ExchangeViewSet, basename="exchange") router.register( "credentials", credentials.views.CredentialViewSet, basename="credential" ) schema_view = get_schema_view( openapi.Info( title="yufuquant API",
# coding:utf-8 from django.conf.urls import url from .. import api from rest_framework_bulk.routes import BulkRouter app_name = 'assets' router = BulkRouter() router.register(r'v1/assets', api.AssetViewSet, 'asset') router.register(r'v1/admin-user', api.AdminUserViewSet, 'admin-user') router.register(r'v1/system-user', api.SystemUserViewSet, 'system-user') router.register(r'v1/labels', api.LabelViewSet, 'label') router.register(r'v1/nodes', api.NodeViewSet, 'node') router.register(r'v1/domain', api.DomainViewSet, 'domain') router.register(r'v1/gateway', api.GatewayViewSet, 'gateway') urlpatterns = [ url(r'^v1/assets-bulk/$', api.AssetListUpdateApi.as_view(), name='asset-bulk-update'), url(r'^v1/system-user/(?P<pk>[0-9a-zA-Z\-]{36})/auth-info/', api.SystemUserAuthInfoApi.as_view(), name='system-user-auth-info'), url(r'^v1/assets/(?P<pk>[0-9a-zA-Z\-]{36})/refresh/$', api.AssetRefreshHardwareApi.as_view(), name='asset-refresh'), url(r'^v1/assets/(?P<pk>[0-9a-zA-Z\-]{36})/alive/$', api.AssetAdminUserTestApi.as_view(), name='asset-alive-test'), url(r'^v1/admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/nodes/$', api.ReplaceNodesAdminUserApi.as_view(), name='replace-nodes-admin-user'), url(r'^v1/admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/auth/$', api.AdminUserAuthApi.as_view(), name='admin-user-auth'), url(r'^v1/admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/connective/$', api.AdminUserTestConnectiveApi.as_view(), name='admin-user-connective'),
#!/usr/bin/env python # -*- coding: utf-8 -*- # from django.urls import path, re_path from rest_framework_bulk.routes import BulkRouter from common import api as capi from .. import api app_name = 'terminal' router = BulkRouter() router.register(r'sessions', api.SessionViewSet, 'session') router.register(r'terminals/(?P<terminal>[a-zA-Z0-9\-]{36})?/?status', api.StatusViewSet, 'terminal-status') router.register(r'terminals/(?P<terminal>[a-zA-Z0-9\-]{36})?/?sessions', api.SessionViewSet, 'terminal-sessions') router.register(r'terminals', api.TerminalViewSet, 'terminal') router.register(r'tasks', api.TaskViewSet, 'tasks') router.register(r'commands', api.CommandViewSet, 'command') router.register(r'status', api.StatusViewSet, 'status') router.register(r'replay-storages', api.ReplayStorageViewSet, 'replay-storage') router.register(r'command-storages', api.CommandStorageViewSet, 'command-storage') urlpatterns = [ path('sessions/join/validate/', api.SessionJoinValidateAPI.as_view(), name='join-session-validate'), path('sessions/<uuid:pk>/replay/',
""" Define urls for api/v1 """ from django.conf.urls import url, include from rest_framework_bulk.routes import BulkRouter from seven23.api.changes.views import ApiChange ROUTER = BulkRouter(trailing_slash=False) ROUTER.register(r'^', ApiChange, base_name='changes') urlpatterns = ROUTER.urls
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # from __future__ import absolute_import from django.urls import path from rest_framework_bulk.routes import BulkRouter from authentication import api as auth_api from .. import api app_name = 'users' router = BulkRouter() router.register(r'users', api.UserViewSet, 'user') router.register(r'groups', api.UserGroupViewSet, 'user-group') router.register(r'users-groups-relations', api.UserUserGroupRelationViewSet, 'users-groups-relation') router.register(r'service-account-registrations', api.ServiceAccountRegistrationViewSet, 'service-account-registration') router.register(r'connection-token', auth_api.UserConnectionTokenViewSet, 'connection-token') urlpatterns = [ path('profile/', api.UserProfileApi.as_view(), name='user-profile'), path('profile/password/', api.UserPasswordApi.as_view(), name='user-password'), path('profile/public-key/', api.UserPublicKeyApi.as_view(), name='user-public-key'), path('otp/reset/', api.UserResetOTPApi.as_view(), name='my-otp-reset'), path('users/<uuid:pk>/otp/reset/', api.UserResetOTPApi.as_view(), name='user-reset-otp'), path('users/<uuid:pk>/password/', api.UserChangePasswordApi.as_view(), name='change-user-password'), path('users/<uuid:pk>/password/reset/', api.UserResetPasswordApi.as_view(), name='user-reset-password'), path('users/<uuid:pk>/pubkey/reset/', api.UserResetPKApi.as_view(), name='user-public-key-reset'), path('users/<uuid:pk>/pubkey/update/', api.UserUpdatePKApi.as_view(), name='user-public-key-update'),
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # from __future__ import absolute_import from django.urls import path, include from rest_framework_bulk.routes import BulkRouter from .. import api_v2 as api app_name = 'users' router = BulkRouter() router.register(r'service-account-registrations', api.ServiceAccountRegistrationViewSet, 'service-account-registration') urlpatterns = [ # path('token/', api.UserToken.as_view(), name='user-token'), ] urlpatterns += router.urls
# django imports from django.conf.urls import patterns, url, include # app-specific imports from results import views # rest API imports from rest_framework_bulk.routes import BulkRouter router = BulkRouter() router.register(r'system', views.SystemViewSet) router.register(r'bucket', views.BucketViewSet) router.register(r'series', views.SeriesViewSet) router.register(r'seriesattributes', views.SeriesAttributesViewSet) router.register(r'singlepoint', views.SinglePointViewSet) router.register(r'singlepointouter', views.SinglePointOuterViewSet) router.register(r'singlepointattributes', views.SinglePointAttributesViewSet) router.register(r'mdrun', views.MDRunViewSet) router.register(r'mdstep', views.MDStepViewSet) router.register(r'atom', views.AtomViewSet) router.register(r'coordinate', views.CoordinateViewSet) router.register(r'coordinatewrapped', views.CoordinateWrappedViewSet) router.register(r'hirshfeldcharge', views.HirshfeldChargeViewSet) router.register(r'scaledcoordinate', views.ScaledCoordinateViewSet) router.register(r'scaledcoordinatewrapped', views.ScaledCoordinateWrappedViewSet) router.register(r'mullikencharge', views.MullikenChargeViewSet) router.register(r'mdrunsettings', views.MDRunSettingsViewSet) router.register(r'mdrunattributes', views.MDRunAttributesViewSet) router.register(r'stepcell', views.StepCellViewSet) router.register(r'stepensemble', views.StepEnsembleViewSet) router.register(r'stepcontributionsqm', views.StepContributionsQMViewSet)
from rest_framework_nested import routers from rest_framework.routers import DefaultRouter from rest_framework_bulk.routes import BulkRouter from emergency_app.views import IndexView from PatientSearch.views import * from authentication.views import AccountViewSet, LoginView, LogoutView router = routers.SimpleRouter() router.register(r'accounts', AccountViewSet) router.register(r'residents', ResidentInfoViewSet) router.register(r'incidents', IncidentViewSet) router.register(r'incidentReport', IncidentReportViewSet) router.register(r'building', BuildingViewSet) router.register(r'hospital', HospitalViewSet) bulkRouter = BulkRouter() bulkRouter.register(r'vitalsigns',VitalsignsViewSet) urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^api/', include(router.urls)), url(r'api/',include(bulkRouter.urls)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^api/auth/login/$', LoginView.as_view(), name='login'), url(r'^api/auth/logout/$', LogoutView.as_view(), name='logout'), # url(r'^.*$', IndexView.as_view(), name='index'), url(r'^.*$', IndexView.as_view(), name='index'), ]
from django.conf.urls import include, url from django.contrib import admin from rest_framework import routers from rest_framework_bulk.routes import BulkRouter from api.views import * router = BulkRouter() router.register(r"product", ProductViewSet) router.register(r"product_relationship", Product_relationshipViewSet) router.register(r"product_version", Product_versionViewSet) router.register(r"product_version_relationship", Product_version_relationshipViewSet) router.register(r"product_category", Product_categoryViewSet) router.register(r"product_category_assignment", Product_category_assignmentViewSet) router.register(r"product_category_hierarchy", Product_category_hierarchyViewSet) router.register(r"product_view_definition", Product_view_definitionViewSet) router.register(r"view_definition_context", View_definition_contextViewSet) router.register(r"product_property_assignment", Product_property_assignmentViewSet) router.register(r"view_definition_relationship", View_definition_relationshipViewSet) router.register(r"view_definition_usage", View_definition_usageViewSet) router.register(r"assembly_component_relationship", Assembly_component_relationshipViewSet) router.register(r"next_assembly_usage", Next_assembly_usageViewSet) router.register(r"component_upper_level_identification", Component_upper_level_identificationViewSet) router.register(r"promissory_usage", Promissory_usageViewSet) router.register(r"value_with_unit", Value_with_unitViewSet) router.register(r"unit", UnitViewSet) router.register(r"measure_value", Measure_valueViewSet) router.register(r"any_number_value", any_number_valueViewSet)