Beispiel #1
0
"""cbe hr URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-customer')
router.register(r'customer', views.CustomerViewSet, basename='customer')
router.register(r'account', views.CustomerAccountViewSet)
router.register(r'customer_account_contact', views.CustomerAccountContactViewSet)

urlpatterns = [
    url(r'^api/customer/', include(router.urls)),
]

Beispiel #2
0
"""cbe ar URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

import cbe.accounts_receivable.views as ARViews

router = AppRouter(root_view_name='app-accounts_receivable')
router.register(r'customer_payment', ARViews.CustomerPaymentViewSet)
router.register(r'payment_channel', ARViews.PaymentChannelViewSet)

urlpatterns = [
    url(r'^api/accounts_receivable/', include(router.urls)),
]

Beispiel #3
0
"""cbe credit URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-credit')
router.register(r'credit', views.CreditViewSet)
router.register(r'credit_alert', views.CreditAlertViewSet)
router.register(r'credit_balance_event', views.CreditBalanceEventViewSet)
router.register(r'credit_profile', views.CreditProfileViewSet)

urlpatterns = [
    url(r'^api/credit/', include(router.urls)),
]

Beispiel #4
0
"""cbe location URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

import cbe.location.views as LocationViews

router = AppRouter(root_view_name='app-location')
router.register(r'geographic_area', LocationViews.GeographicAreaViewSet)
router.register(r'country', LocationViews.CountryViewSet)
router.register(r'city', LocationViews.CityViewSet)
router.register(r'urban_property_address',
                LocationViews.UrbanPropertyAddressViewSet)
router.register(r'po_box_address', LocationViews.PoBoxAddressViewSet)
router.register(r'location', LocationViews.LocationViewSet)

urlpatterns = [
    url(r'^api/location/', include(router.urls)),
]
Beispiel #5
0
"""cbe project URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-project')
router.register(r'project', views.ProjectViewSet)

urlpatterns = [
    url(r'^api/project/', include(router.urls)),
]

Beispiel #6
0
"""cbe ar URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-supplier_partner')
router.register(r'supplier', views.SupplierViewSet)
router.register(r'supplier_account', views.SupplierAccountViewSet)
router.register(r'partner', views.PartnerViewSet)
router.register(r'buyer', views.BuyerViewSet)

urlpatterns = [
    url(r'^api/supplier_partner/', include(router.urls)),
]

Beispiel #7
0
"""cbe trouble URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-trouble')
router.register(r'problem', views.ProblemViewSet)

urlpatterns = [
    url(r'^api/trouble/', include(router.urls)),
]

Beispiel #8
0
"""cbe resource URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-resource')
router.register(r'physical_resource', views.PhysicalResourceViewSet)

urlpatterns = [
    url(r'^api/resource/', include(router.urls)),
]

Beispiel #9
0
"""cbe hr URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

import cbe.human_resources.views as HRViews

router = AppRouter(root_view_name='app-human_resources')
router.register(r'staff', HRViews.StaffViewSet)
router.register(r'identification', HRViews.IdentificationViewSet)
router.register(r'identification_type', HRViews.IdentificationTypeViewSet)
router.register(r'timesheet', HRViews.TimesheetViewSet)
router.register(r'timesheet_entries', HRViews.TimesheetEntryViewSet)

urlpatterns = [
    url(r'^api/human_resources/', include(router.urls)),
]

Beispiel #10
0
"""cbe party URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

import cbe.party.views as PartyViews

router = AppRouter(root_view_name='app-party')
router.register(r'individual', PartyViews.IndividualViewSet)
router.register(r'organisation', PartyViews.OrganisationViewSet)
router.register(r'generic_party_role', PartyViews.GenericPartyRoleViewSet)
router.register(r'telephone_number', PartyViews.TelephoneNumberViewSet)
router.register(r'owner', PartyViews.OwnerViewSet)
router.register(r'party_role_association',
                PartyViews.PartyRoleAssociationViewSet)

urlpatterns = [
    url(r'^api/party/', include(router.urls)),
]
Beispiel #11
0
from cbe.project.urls import urlpatterns as ProjectUrls

admin.site.site_title = 'CBE'
admin.site.site_header = 'Common Business Entities'

apps = {
    'party': 'app-party',
    'accounts_receivable': 'app-accounts_receivable',
    'location': 'app-location',
    'human_resources': 'app-human_resources',
    'customer': 'app-customer',
    'credit': 'app-credit',
    'resource': 'app-resource',
    'trouble': 'app-trouble',
    'physical_object': 'app-physical_object',
    'supplier_partner': 'app-supplier_partner',
    'project': 'app-project',
    'information_technology': 'app-information_technology',
}
router = AppRouter(apps=apps)
router.register(r'auth/users', CBEViews.UserViewSet)
router.register(r'content_types', CBEViews.ContentTypeViewSet)

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include(router.urls)),
    url(r'^api-auth/',
        include('rest_framework.urls', namespace='rest_framework')),
] + PartyUrls + LocationUrls + ARUrls + HRUrls + CustomerUrls + SPUrls + ITUrls + ResourceUrls + CreditUrls + TroubleUrls + PhysicalObjectUrls + ProjectUrls
Beispiel #12
0
"""cbe physical_object URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-physical_object')
router.register(r'structure', views.StructureViewSet)
router.register(r'vehicle', views.VehicleViewSet)
router.register(r'device', views.DeviceViewSet)

urlpatterns = [
    url(r'^api/physical_object/', include(router.urls)),
]

Beispiel #13
0
"""cbe ar URL Configuration

"""
from django.conf.urls import include, url

from drf_nest.routers import AppRouter
from . import views

router = AppRouter(root_view_name='app-information_technology')
router.register(r'component', views.ComponentViewSet)
router.register(r'component', views.ComponentViewSet)
router.register(r'component_classification',
                views.ComponentClassificationViewSet)
router.register(r'process_framework', views.ProcessFrameworkViewSet)
router.register(r'process', views.ProcessViewSet)
router.register(r'process_classification', views.ProcessClassificationViewSet)

urlpatterns = [
    url(r'^api/information_technology/', include(router.urls)),
]