[UPDT] HORILLA API: Changed value of name attribute in url path of horilla_api
This commit is contained in:
@@ -6,23 +6,33 @@ urlpatterns = [
|
|||||||
re_path(
|
re_path(
|
||||||
r"^asset-categories/(?P<pk>\d+)?$",
|
r"^asset-categories/(?P<pk>\d+)?$",
|
||||||
AssetCategoryAPIView.as_view(),
|
AssetCategoryAPIView.as_view(),
|
||||||
name="asset-category-detail",
|
name="api-asset-category-detail",
|
||||||
),
|
),
|
||||||
re_path(
|
re_path(
|
||||||
r"^asset-lots/(?P<pk>\d+)?$", AssetLotAPIView.as_view(), name="asset-lot-detail"
|
r"^asset-lots/(?P<pk>\d+)?$",
|
||||||
|
AssetLotAPIView.as_view(),
|
||||||
|
name="api-asset-lot-detail",
|
||||||
),
|
),
|
||||||
re_path(r"^assets/(?P<pk>\d+)?$", AssetAPIView.as_view(), name="asset-detail"),
|
re_path(r"^assets/(?P<pk>\d+)?$", AssetAPIView.as_view(), name="api-asset-detail"),
|
||||||
re_path(
|
re_path(
|
||||||
r"^asset-allocations/(?P<pk>\d+)?$",
|
r"^asset-allocations/(?P<pk>\d+)?$",
|
||||||
AssetAllocationAPIView.as_view(),
|
AssetAllocationAPIView.as_view(),
|
||||||
name="asset-allocation-detail",
|
name="api-asset-allocation-detail",
|
||||||
),
|
),
|
||||||
re_path(
|
re_path(
|
||||||
r"^asset-requests/(?P<pk>\d+)?$",
|
r"^asset-requests/(?P<pk>\d+)?$",
|
||||||
AssetRequestAPIView.as_view(),
|
AssetRequestAPIView.as_view(),
|
||||||
name="asset-request-detail",
|
name="api-asset-request-detail",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"asset-return/<int:pk>", AssetReturnAPIView.as_view(), name="api-asset-return"
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"asset-reject/<int:pk>", AssetRejectAPIView.as_view(), name="api-asset-reject"
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"asset-approve/<int:pk>",
|
||||||
|
AssetApproveAPIView.as_view(),
|
||||||
|
name="api-asset-approve",
|
||||||
),
|
),
|
||||||
path("asset-return/<int:pk>", AssetReturnAPIView.as_view(), name="asset-return"),
|
|
||||||
path("asset-reject/<int:pk>", AssetRejectAPIView.as_view(), name="asset-reject"),
|
|
||||||
path("asset-approve/<int:pk>", AssetApproveAPIView.as_view(), name="asset-approve"),
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -8,44 +8,48 @@ from horilla_api.api_views.attendance.permission_views import AttendancePermissi
|
|||||||
from horilla_api.api_views.attendance.views import *
|
from horilla_api.api_views.attendance.views import *
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("clock-in/", ClockInAPIView.as_view(), name="check-in"),
|
path("clock-in/", ClockInAPIView.as_view(), name="api-check-in"),
|
||||||
path("clock-out/", ClockOutAPIView.as_view(), name="check-out"),
|
path("clock-out/", ClockOutAPIView.as_view(), name="api-check-out"),
|
||||||
path("attendance/", AttendanceView.as_view(), name="attendance-list"),
|
path("attendance/", AttendanceView.as_view(), name="api-attendance-list"),
|
||||||
path("attendance/<int:pk>", AttendanceView.as_view(), name="attendance-detail"),
|
path("attendance/<int:pk>", AttendanceView.as_view(), name="api-attendance-detail"),
|
||||||
path(
|
path(
|
||||||
"attendance/list/<str:type>", AttendanceView.as_view(), name="attendance-list"
|
"attendance/list/<str:type>",
|
||||||
|
AttendanceView.as_view(),
|
||||||
|
name="api-attendance-list",
|
||||||
),
|
),
|
||||||
path("attendance-validate/<int:pk>", ValidateAttendanceView.as_view(), name=""),
|
path("attendance-validate/<int:pk>", ValidateAttendanceView.as_view()),
|
||||||
path(
|
path(
|
||||||
"attendance-request/",
|
"attendance-request/",
|
||||||
AttendanceRequestView.as_view(),
|
AttendanceRequestView.as_view(),
|
||||||
name="attendance-request-view",
|
name="api-attendance-request-view",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"attendance-request/<int:pk>",
|
"attendance-request/<int:pk>",
|
||||||
AttendanceRequestView.as_view(),
|
AttendanceRequestView.as_view(),
|
||||||
name="attendance-request-view",
|
name="api-attendance-request-view",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"attendance-request-approve/<int:pk>",
|
"attendance-request-approve/<int:pk>",
|
||||||
AttendanceRequestApproveView.as_view(),
|
AttendanceRequestApproveView.as_view(),
|
||||||
name="",
|
name="api-",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"attendance-request-cancel/<int:pk>",
|
"attendance-request-cancel/<int:pk>",
|
||||||
AttendanceRequestCancelView.as_view(),
|
AttendanceRequestCancelView.as_view(),
|
||||||
name="",
|
name="api-",
|
||||||
),
|
),
|
||||||
path("overtime-approve/<int:pk>", OvertimeApproveView.as_view(), name=""),
|
path("overtime-approve/<int:pk>", OvertimeApproveView.as_view(), name="api-"),
|
||||||
path(
|
path(
|
||||||
"attendance-hour-account/<int:pk>/", AttendanceOverTimeView.as_view(), name=""
|
"attendance-hour-account/<int:pk>/",
|
||||||
|
AttendanceOverTimeView.as_view(),
|
||||||
|
name="api-",
|
||||||
),
|
),
|
||||||
path("attendance-hour-account/", AttendanceOverTimeView.as_view(), name=""),
|
path("attendance-hour-account/", AttendanceOverTimeView.as_view(), name="api-"),
|
||||||
path("late-come-early-out-view/", LateComeEarlyOutView.as_view(), name=""),
|
path("late-come-early-out-view/", LateComeEarlyOutView.as_view(), name="api-"),
|
||||||
path("attendance-activity/", AttendanceActivityView.as_view(), name=""),
|
path("attendance-activity/", AttendanceActivityView.as_view(), name="api-"),
|
||||||
path("today-attendance/", TodayAttendance.as_view(), name=""),
|
path("today-attendance/", TodayAttendance.as_view(), name="api-"),
|
||||||
path("offline-employees/count/", OfflineEmployeesCountView.as_view(), name=""),
|
path("offline-employees/count/", OfflineEmployeesCountView.as_view(), name="api-"),
|
||||||
path("offline-employees/list/", OfflineEmployeesListView.as_view(), name=""),
|
path("offline-employees/list/", OfflineEmployeesListView.as_view(), name="api-"),
|
||||||
path("permission-check/attendance", AttendancePermissionCheck.as_view()),
|
path("permission-check/attendance", AttendancePermissionCheck.as_view()),
|
||||||
path("checking-in", CheckingStatus.as_view()),
|
path("checking-in", CheckingStatus.as_view()),
|
||||||
path("offline-employee-mail-send", OfflineEmployeeMailsend.as_view()),
|
path("offline-employee-mail-send", OfflineEmployeeMailsend.as_view()),
|
||||||
|
|||||||
@@ -3,250 +3,256 @@ from django.urls import path, re_path
|
|||||||
from ...api_views.base import views
|
from ...api_views.base import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("job-positions/", views.JobPositionView.as_view(), name="job_position_detail"),
|
path(
|
||||||
|
"job-positions/",
|
||||||
|
views.JobPositionView.as_view(),
|
||||||
|
name="api-job_position_detail",
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
"job-positions/<int:pk>/",
|
"job-positions/<int:pk>/",
|
||||||
views.JobPositionView.as_view(),
|
views.JobPositionView.as_view(),
|
||||||
name="job_position_detail_with_pk",
|
name="api-job_position_detail_with_pk",
|
||||||
),
|
),
|
||||||
path("job-roles/", views.JobRoleView.as_view(), name="job_roles_details"),
|
path("job-roles/", views.JobRoleView.as_view(), name="api-job_roles_details"),
|
||||||
path(
|
path(
|
||||||
"job-roles/<int:pk>/",
|
"job-roles/<int:pk>/",
|
||||||
views.JobRoleView.as_view(),
|
views.JobRoleView.as_view(),
|
||||||
name="job_roles_details_with_pk",
|
name="api-job_roles_details_with_pk",
|
||||||
),
|
),
|
||||||
path("companies/", views.CompanyView.as_view(), name="companies_detail"),
|
path("companies/", views.CompanyView.as_view(), name="api-companies_detail"),
|
||||||
path(
|
path(
|
||||||
"companies/<int:pk>/",
|
"companies/<int:pk>/",
|
||||||
views.CompanyView.as_view(),
|
views.CompanyView.as_view(),
|
||||||
name="companies_detail_with_pk",
|
name="api-companies_detail_with_pk",
|
||||||
),
|
),
|
||||||
path("departments/", views.DepartmentView.as_view(), name="department_detail"),
|
path("departments/", views.DepartmentView.as_view(), name="api-department_detail"),
|
||||||
path(
|
path(
|
||||||
"departments/<int:pk>/",
|
"departments/<int:pk>/",
|
||||||
views.DepartmentView.as_view(),
|
views.DepartmentView.as_view(),
|
||||||
name="department_detail_with_pk",
|
name="api-department_detail_with_pk",
|
||||||
),
|
),
|
||||||
path("worktypes/", views.WorkTypeView.as_view(), name="worktype_detail"),
|
path("worktypes/", views.WorkTypeView.as_view(), name="api-worktype_detail"),
|
||||||
path(
|
path(
|
||||||
"worktypes/<int:pk>/",
|
"worktypes/<int:pk>/",
|
||||||
views.WorkTypeView.as_view(),
|
views.WorkTypeView.as_view(),
|
||||||
name="worktype_detail_with_pk",
|
name="api-worktype_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-worktypes/",
|
"rotating-worktypes/",
|
||||||
views.RotatingWorkTypeView.as_view(),
|
views.RotatingWorkTypeView.as_view(),
|
||||||
name="rotating_worktypes_detail",
|
name="api-rotating_worktypes_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-worktypes/<int:pk>/",
|
"rotating-worktypes/<int:pk>/",
|
||||||
views.RotatingWorkTypeView.as_view(),
|
views.RotatingWorkTypeView.as_view(),
|
||||||
name="rotating_worktypes_detail_with_pk",
|
name="api-rotating_worktypes_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-worktype-assigns/",
|
"rotating-worktype-assigns/",
|
||||||
views.RotatingWorkTypeAssignView.as_view(),
|
views.RotatingWorkTypeAssignView.as_view(),
|
||||||
name="rotating_worktype_assign_detail",
|
name="api-rotating_worktype_assign_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-rotating-worktypes/",
|
"individual-rotating-worktypes/",
|
||||||
views.IndividualRotatingWorktypesView.as_view(),
|
views.IndividualRotatingWorktypesView.as_view(),
|
||||||
name="individual-worktype",
|
name="api-individual-worktype",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-rotating-worktypes/<int:pk>",
|
"individual-rotating-worktypes/<int:pk>",
|
||||||
views.IndividualRotatingWorktypesView.as_view(),
|
views.IndividualRotatingWorktypesView.as_view(),
|
||||||
name="individual-worktype",
|
name="api-individual-worktype",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-worktype-request/",
|
"individual-worktype-request/",
|
||||||
views.IndividualWorkTypeRequestView.as_view(),
|
views.IndividualWorkTypeRequestView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-worktype-request/<int:pk>",
|
"individual-worktype-request/<int:pk>",
|
||||||
views.IndividualWorkTypeRequestView.as_view(),
|
views.IndividualWorkTypeRequestView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-worktype-assigns/<int:pk>/",
|
"rotating-worktype-assigns/<int:pk>/",
|
||||||
views.RotatingWorkTypeAssignView.as_view(),
|
views.RotatingWorkTypeAssignView.as_view(),
|
||||||
name="rotating_worktype_assign_detail_with_pk",
|
name="api-rotating_worktype_assign_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-shift/",
|
"employee-shift/",
|
||||||
views.EmployeeShiftView.as_view(),
|
views.EmployeeShiftView.as_view(),
|
||||||
name="employee_shift_detail",
|
name="api-employee_shift_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-shift/<int:pk>/",
|
"employee-shift/<int:pk>/",
|
||||||
views.EmployeeShiftView.as_view(),
|
views.EmployeeShiftView.as_view(),
|
||||||
name="employee_shift_detail_with_pk",
|
name="api-employee_shift_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-shift-schedules/",
|
"employee-shift-schedules/",
|
||||||
views.EmployeeShiftScheduleView.as_view(),
|
views.EmployeeShiftScheduleView.as_view(),
|
||||||
name="employee_shift_schedule_detail",
|
name="api-employee_shift_schedule_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-shift-schedules/<int:pk>/",
|
"employee-shift-schedules/<int:pk>/",
|
||||||
views.EmployeeShiftScheduleView.as_view(),
|
views.EmployeeShiftScheduleView.as_view(),
|
||||||
name="employee_shift_schedule_detail_with_pk",
|
name="api-employee_shift_schedule_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shifts/",
|
"rotating-shifts/",
|
||||||
views.RotatingShiftView.as_view(),
|
views.RotatingShiftView.as_view(),
|
||||||
name="rotating_shifts_detail",
|
name="api-rotating_shifts_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shifts/<int:pk>/",
|
"rotating-shifts/<int:pk>/",
|
||||||
views.RotatingShiftView.as_view(),
|
views.RotatingShiftView.as_view(),
|
||||||
name="rotating_shifts_detail_with_pk",
|
name="api-rotating_shifts_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-assigns/",
|
"rotating-shift-assigns/",
|
||||||
views.RotatingShiftAssignView.as_view(),
|
views.RotatingShiftAssignView.as_view(),
|
||||||
name="rotating_shift_assigns_detail",
|
name="api-rotating_shift_assigns_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-assigns/<int:pk>/",
|
"rotating-shift-assigns/<int:pk>/",
|
||||||
views.RotatingShiftAssignView.as_view(),
|
views.RotatingShiftAssignView.as_view(),
|
||||||
name="rotating_shift_assigns_detail_with_pk",
|
name="api-rotating_shift_assigns_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-rotating-shifts/",
|
"individual-rotating-shifts/",
|
||||||
views.IndividualRotatingShiftView.as_view(),
|
views.IndividualRotatingShiftView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-rotating-shifts/<int:pk>",
|
"individual-rotating-shifts/<int:pk>",
|
||||||
views.IndividualRotatingShiftView.as_view(),
|
views.IndividualRotatingShiftView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"worktype-requests/",
|
"worktype-requests/",
|
||||||
views.WorkTypeRequestView.as_view(),
|
views.WorkTypeRequestView.as_view(),
|
||||||
name="worktype_requests_detail",
|
name="api-worktype_requests_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"worktype-requests/<int:pk>/",
|
"worktype-requests/<int:pk>/",
|
||||||
views.WorkTypeRequestView.as_view(),
|
views.WorkTypeRequestView.as_view(),
|
||||||
name="worktype_requests_detail_with_pk",
|
name="api-worktype_requests_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"worktype-requests-cancel/<int:pk>/",
|
"worktype-requests-cancel/<int:pk>/",
|
||||||
views.WorkTypeRequestCancelView.as_view(),
|
views.WorkTypeRequestCancelView.as_view(),
|
||||||
name="worktype_requests_detail_with_pk",
|
name="api-worktype_requests_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"worktype-requests-approve/<int:pk>/",
|
"worktype-requests-approve/<int:pk>/",
|
||||||
views.WorkRequestApproveView.as_view(),
|
views.WorkRequestApproveView.as_view(),
|
||||||
name="worktype_requests_detail_with_pk",
|
name="api-worktype_requests_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-requests/",
|
"shift-requests/",
|
||||||
views.ShiftRequestView.as_view(),
|
views.ShiftRequestView.as_view(),
|
||||||
name="shift_requests_detail",
|
name="api-shift_requests_detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-requests/<int:pk>/",
|
"shift-requests/<int:pk>/",
|
||||||
views.ShiftRequestView.as_view(),
|
views.ShiftRequestView.as_view(),
|
||||||
name="shift_requests_detail_with_pk",
|
name="api-shift_requests_detail_with_pk",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-shift-request/",
|
"individual-shift-request/",
|
||||||
views.IndividualShiftRequestView.as_view(),
|
views.IndividualShiftRequestView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"individual-shift-request/<int:pk>",
|
"individual-shift-request/<int:pk>",
|
||||||
views.IndividualShiftRequestView.as_view(),
|
views.IndividualShiftRequestView.as_view(),
|
||||||
name="individual-worktype-request",
|
name="api-individual-worktype-request",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-approve/<int:pk>",
|
"shift-request-approve/<int:pk>",
|
||||||
views.ShiftRequestApproveView.as_view(),
|
views.ShiftRequestApproveView.as_view(),
|
||||||
name="shift-requests-approve",
|
name="api-shift-requests-approve",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-bulk-approve",
|
"shift-request-bulk-approve",
|
||||||
views.ShiftRequestBulkApproveView.as_view(),
|
views.ShiftRequestBulkApproveView.as_view(),
|
||||||
name="shift-request-bulk-approve",
|
name="api-shift-request-bulk-approve",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-cancel/<int:pk>",
|
"shift-request-cancel/<int:pk>",
|
||||||
views.ShiftRequestCancelView.as_view(),
|
views.ShiftRequestCancelView.as_view(),
|
||||||
name="shift-request-cancel",
|
name="api-shift-request-cancel",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-bulk-cancel",
|
"shift-request-bulk-cancel",
|
||||||
views.ShiftRequestBulkCancelView.as_view(),
|
views.ShiftRequestBulkCancelView.as_view(),
|
||||||
name="shift-request-bulk-cancel",
|
name="api-shift-request-bulk-cancel",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-delete/<int:pk>",
|
"shift-request-delete/<int:pk>",
|
||||||
views.ShiftRequestDeleteView.as_view(),
|
views.ShiftRequestDeleteView.as_view(),
|
||||||
name="shift-request-delete",
|
name="api-shift-request-delete",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-bulk-delete",
|
"shift-request-bulk-delete",
|
||||||
views.ShiftRequestDeleteView.as_view(),
|
views.ShiftRequestDeleteView.as_view(),
|
||||||
name="shift-request-bulk-delete",
|
name="api-shift-request-bulk-delete",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-export",
|
"shift-request-export",
|
||||||
views.ShiftRequestExportView.as_view(),
|
views.ShiftRequestExportView.as_view(),
|
||||||
name="shift-request-export",
|
name="api-shift-request-export",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-allocation/<int:id>",
|
"shift-request-allocation/<int:id>",
|
||||||
views.ShiftRequestAllocationView.as_view(),
|
views.ShiftRequestAllocationView.as_view(),
|
||||||
name="shift-request-allocation",
|
name="api-shift-request-allocation",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"work-type-request-export",
|
"work-type-request-export",
|
||||||
views.WorkTypeRequestExport.as_view(),
|
views.WorkTypeRequestExport.as_view(),
|
||||||
name="work-type-request-export",
|
name="api-work-type-request-export",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-assign-export",
|
"rotating-shift-assign-export",
|
||||||
views.RotatingShiftAssignExport.as_view(),
|
views.RotatingShiftAssignExport.as_view(),
|
||||||
name="rotating-shift-assigns-export",
|
name="api-rotating-shift-assigns-export",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-assign-bulk-archive/<str:status>",
|
"rotating-shift-assign-bulk-archive/<str:status>",
|
||||||
views.RotatingShiftAssignBulkArchive.as_view(),
|
views.RotatingShiftAssignBulkArchive.as_view(),
|
||||||
name="rotating-shift-assigns-archive",
|
name="api-rotating-shift-assigns-archive",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-assign-bulk-delete",
|
"rotating-shift-assign-bulk-delete",
|
||||||
views.RotatingShiftAssignBulkDelete.as_view(),
|
views.RotatingShiftAssignBulkDelete.as_view(),
|
||||||
name="rotating-shift-assigns-bulk-delete",
|
name="api-rotating-shift-assigns-bulk-delete",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-worktype-create-permission-check/<int:id>",
|
"rotating-worktype-create-permission-check/<int:id>",
|
||||||
views.RotatingWorKTypePermissionCheck.as_view(),
|
views.RotatingWorKTypePermissionCheck.as_view(),
|
||||||
name="rotating-worktype-create-permission-check",
|
name="api-rotating-worktype-create-permission-check",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"rotating-shift-create-permission-check/<int:id>",
|
"rotating-shift-create-permission-check/<int:id>",
|
||||||
views.RotatingShiftPermissionCheck.as_view(),
|
views.RotatingShiftPermissionCheck.as_view(),
|
||||||
name="rotating-shift-create-permission-check",
|
name="api-rotating-shift-create-permission-check",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"shift-request-approve-permission-check",
|
"shift-request-approve-permission-check",
|
||||||
views.ShiftRequestApprovePermissionCheck.as_view(),
|
views.ShiftRequestApprovePermissionCheck.as_view(),
|
||||||
name="rotating-worktype-create-permission-check",
|
name="api-rotating-worktype-create-permission-check",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"worktype-request-approve-permission-check",
|
"worktype-request-approve-permission-check",
|
||||||
views.WorktypeRequestApprovePermissionCheck.as_view(),
|
views.WorktypeRequestApprovePermissionCheck.as_view(),
|
||||||
name="rotating-shift-create-permission-check",
|
name="api-rotating-shift-create-permission-check",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-tab-permission-check",
|
"employee-tab-permission-check",
|
||||||
views.EmployeeTabPermissionCheck.as_view(),
|
views.EmployeeTabPermissionCheck.as_view(),
|
||||||
name="rotating-shift-create-permission-check",
|
name="api-rotating-shift-create-permission-check",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"check-user-level", views.CheckUserLevel.as_view(), name="api-check-user-level"
|
||||||
),
|
),
|
||||||
path("check-user-level", views.CheckUserLevel.as_view(), name="check-user-level"),
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -3,109 +3,119 @@ from django.urls import path
|
|||||||
from ...api_views.employee import views as views
|
from ...api_views.employee import views as views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("employees/", views.EmployeeAPIView.as_view(), name="employees-list"),
|
path("employees/", views.EmployeeAPIView.as_view(), name="api-employees-list"),
|
||||||
path(
|
path(
|
||||||
"employees/<int:pk>/", views.EmployeeAPIView.as_view(), name="employee-detail"
|
"employees/<int:pk>/",
|
||||||
|
views.EmployeeAPIView.as_view(),
|
||||||
|
name="api-employee-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-type/<int:pk>", views.EmployeeTypeAPIView.as_view(), name="employees"
|
"employee-type/<int:pk>",
|
||||||
|
views.EmployeeTypeAPIView.as_view(),
|
||||||
|
name="api-employees",
|
||||||
),
|
),
|
||||||
path("employee-type/", views.EmployeeTypeAPIView.as_view(), name="employees"),
|
path("employee-type/", views.EmployeeTypeAPIView.as_view(), name="api-employees"),
|
||||||
path(
|
path(
|
||||||
"list/employees/",
|
"list/employees/",
|
||||||
views.EmployeeListAPIView.as_view(),
|
views.EmployeeListAPIView.as_view(),
|
||||||
name="employee-list-detailed",
|
name="api-employee-list-detailed",
|
||||||
), # Alternative endpoint for listing employees
|
), # Alternative endpoint for listing employees
|
||||||
path(
|
path(
|
||||||
"employee-bank-details/<int:pk>/",
|
"employee-bank-details/<int:pk>/",
|
||||||
views.EmployeeBankDetailsAPIView.as_view(),
|
views.EmployeeBankDetailsAPIView.as_view(),
|
||||||
name="employee-bank-details-detail",
|
name="api-employee-bank-details-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-work-information/",
|
"employee-work-information/",
|
||||||
views.EmployeeWorkInformationAPIView.as_view(),
|
views.EmployeeWorkInformationAPIView.as_view(),
|
||||||
name="employee-work-information-list",
|
name="api-employee-work-information-list",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-work-information/<int:pk>/",
|
"employee-work-information/<int:pk>/",
|
||||||
views.EmployeeWorkInformationAPIView.as_view(),
|
views.EmployeeWorkInformationAPIView.as_view(),
|
||||||
name="employee-work-information-detail",
|
name="api-employee-work-information-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-work-info-export/",
|
"employee-work-info-export/",
|
||||||
views.EmployeeWorkInfoExportView.as_view(),
|
views.EmployeeWorkInfoExportView.as_view(),
|
||||||
name="employee-work-info-export",
|
name="api-employee-work-info-export",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-work-info-import/",
|
"employee-work-info-import/",
|
||||||
views.EmployeeWorkInfoImportView.as_view(),
|
views.EmployeeWorkInfoImportView.as_view(),
|
||||||
name="employee-work-info-import",
|
name="api-employee-work-info-import",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-bulk-update/",
|
"employee-bulk-update/",
|
||||||
views.EmployeeBulkUpdateView.as_view(),
|
views.EmployeeBulkUpdateView.as_view(),
|
||||||
name="employee-bulk-update",
|
name="api-employee-bulk-update",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"disciplinary-action/",
|
"disciplinary-action/",
|
||||||
views.DisciplinaryActionAPIView.as_view(),
|
views.DisciplinaryActionAPIView.as_view(),
|
||||||
name="disciplinary-action-list",
|
name="api-disciplinary-action-list",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"disciplinary-action/<int:pk>/",
|
"disciplinary-action/<int:pk>/",
|
||||||
views.DisciplinaryActionAPIView.as_view(),
|
views.DisciplinaryActionAPIView.as_view(),
|
||||||
name="disciplinary-action-detail",
|
name="api-disciplinary-action-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"disciplinary-action-type/",
|
"disciplinary-action-type/",
|
||||||
views.ActiontypeView.as_view(),
|
views.ActiontypeView.as_view(),
|
||||||
name="disciplinary-action-type",
|
name="api-disciplinary-action-type",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"disciplinary-action-type/<int:pk>/",
|
"disciplinary-action-type/<int:pk>/",
|
||||||
views.ActiontypeView.as_view(),
|
views.ActiontypeView.as_view(),
|
||||||
name="disciplinary-action-type",
|
name="api-disciplinary-action-type",
|
||||||
),
|
),
|
||||||
path("policies/", views.PolicyAPIView.as_view(), name="policy-list"),
|
path("policies/", views.PolicyAPIView.as_view(), name="api-policy-list"),
|
||||||
path("policies/<int:pk>/", views.PolicyAPIView.as_view(), name="policy-detail"),
|
path("policies/<int:pk>/", views.PolicyAPIView.as_view(), name="api-policy-detail"),
|
||||||
path(
|
path(
|
||||||
"document-request/",
|
"document-request/",
|
||||||
views.DocumentRequestAPIView.as_view(),
|
views.DocumentRequestAPIView.as_view(),
|
||||||
name="document-request-list",
|
name="api-document-request-list",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"document-request/<int:pk>/",
|
"document-request/<int:pk>/",
|
||||||
views.DocumentRequestAPIView.as_view(),
|
views.DocumentRequestAPIView.as_view(),
|
||||||
name="document-request-detail",
|
name="api-document-request-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"document-bulk-approve-reject/",
|
"document-bulk-approve-reject/",
|
||||||
views.DocumentBulkApproveRejectAPIView.as_view(),
|
views.DocumentBulkApproveRejectAPIView.as_view(),
|
||||||
name="document-bulk-approve-reject",
|
name="api-document-bulk-approve-reject",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"document-request-approve-reject/<int:id>/<str:status>/",
|
"document-request-approve-reject/<int:id>/<str:status>/",
|
||||||
views.DocumentRequestApproveRejectView.as_view(),
|
views.DocumentRequestApproveRejectView.as_view(),
|
||||||
name="document-request-approve-reject",
|
name="api-document-request-approve-reject",
|
||||||
),
|
),
|
||||||
path("documents/", views.DocumentAPIView.as_view(), name="document-list"),
|
path("documents/", views.DocumentAPIView.as_view(), name="api-document-list"),
|
||||||
path(
|
path(
|
||||||
"documents/<int:pk>/", views.DocumentAPIView.as_view(), name="document-detail"
|
"documents/<int:pk>/",
|
||||||
|
views.DocumentAPIView.as_view(),
|
||||||
|
name="api-document-detail",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-bulk- archive/<str:is_active>/",
|
"employee-bulk- archive/<str:is_active>/",
|
||||||
views.EmployeeBulkArchiveView.as_view(),
|
views.EmployeeBulkArchiveView.as_view(),
|
||||||
name="employee-bulk-archive",
|
name="api-employee-bulk-archive",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-archive/<int:id>/<str:is_active>/",
|
"employee-archive/<int:id>/<str:is_active>/",
|
||||||
views.EmployeeArchiveView.as_view(),
|
views.EmployeeArchiveView.as_view(),
|
||||||
name="employee-archive",
|
name="api-employee-archive",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"employee-selector/",
|
"employee-selector/",
|
||||||
views.EmployeeSelectorView.as_view(),
|
views.EmployeeSelectorView.as_view(),
|
||||||
name="employee-selector",
|
name="api-employee-selector",
|
||||||
|
),
|
||||||
|
path(
|
||||||
|
"manager-check/",
|
||||||
|
views.ReportingManagerCheck.as_view(),
|
||||||
|
name="api-manager-check",
|
||||||
),
|
),
|
||||||
path("manager-check/", views.ReportingManagerCheck.as_view(), name="manager-check"),
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user