* dev: workspace member deactivation and leave endpoints and filters * dev: deactivated for project members * dev: project members leave * dev: project member check on workspace deactivation * dev: project member queryset update and remove leave project endpoint * dev: rename is_deactivated to is_active and user deactivation apis * dev: check if the user is already part of workspace then make them active * dev: workspace and project save * dev: update project members to make them active * dev: project invitation * dev: automatic user workspace and project member create when user sign in/up * dev: fix member invites * dev: rename deactivation variable * dev: update project member invitation * dev: additional permission layer for workspace * dev: update the url for workspace invitations * dev: remove invitation urls from users * dev: cleanup workspace invitation workflow * dev: workspace and project invitation
84 lines
2 KiB
Python
84 lines
2 KiB
Python
from django.urls import path
|
|
|
|
from plane.api.views import (
|
|
## User
|
|
UserEndpoint,
|
|
UpdateUserOnBoardedEndpoint,
|
|
UpdateUserTourCompletedEndpoint,
|
|
UserActivityEndpoint,
|
|
ChangePasswordEndpoint,
|
|
## End User
|
|
## Workspaces
|
|
UserWorkSpacesEndpoint,
|
|
UserActivityGraphEndpoint,
|
|
UserIssueCompletedGraphEndpoint,
|
|
UserWorkspaceDashboardEndpoint,
|
|
## End Workspaces
|
|
)
|
|
|
|
urlpatterns = [
|
|
# User Profile
|
|
path(
|
|
"users/me/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"patch": "partial_update",
|
|
"delete": "deactivate",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/settings/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve_user_settings",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/change-password/",
|
|
ChangePasswordEndpoint.as_view(),
|
|
name="change-password",
|
|
),
|
|
path(
|
|
"users/me/onboard/",
|
|
UpdateUserOnBoardedEndpoint.as_view(),
|
|
name="user-onboard",
|
|
),
|
|
path(
|
|
"users/me/tour-completed/",
|
|
UpdateUserTourCompletedEndpoint.as_view(),
|
|
name="user-tour",
|
|
),
|
|
path(
|
|
"users/workspaces/<str:slug>/activities/",
|
|
UserActivityEndpoint.as_view(),
|
|
name="user-activities",
|
|
),
|
|
# user workspaces
|
|
path(
|
|
"users/me/workspaces/",
|
|
UserWorkSpacesEndpoint.as_view(),
|
|
name="user-workspace",
|
|
),
|
|
# User Graphs
|
|
path(
|
|
"users/me/workspaces/<str:slug>/activity-graph/",
|
|
UserActivityGraphEndpoint.as_view(),
|
|
name="user-activity-graph",
|
|
),
|
|
path(
|
|
"users/me/workspaces/<str:slug>/issues-completed-graph/",
|
|
UserIssueCompletedGraphEndpoint.as_view(),
|
|
name="completed-graph",
|
|
),
|
|
path(
|
|
"users/me/workspaces/<str:slug>/dashboard/",
|
|
UserWorkspaceDashboardEndpoint.as_view(),
|
|
name="user-workspace-dashboard",
|
|
),
|
|
## End User Graph
|
|
]
|