41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
# Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# See the LICENSE file for details.
|
|
|
|
from django.urls import path
|
|
|
|
from plane.api.views import (
|
|
ProjectMemberListCreateAPIEndpoint,
|
|
ProjectMemberDetailAPIEndpoint,
|
|
WorkspaceMemberAPIEndpoint,
|
|
)
|
|
|
|
urlpatterns = [
|
|
# Project members
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/members/",
|
|
ProjectMemberListCreateAPIEndpoint.as_view(http_method_names=["get", "post"]),
|
|
name="project-members",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/members/<uuid:pk>/",
|
|
ProjectMemberDetailAPIEndpoint.as_view(http_method_names=["patch", "delete", "get"]),
|
|
name="project-member",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/project-members/",
|
|
ProjectMemberListCreateAPIEndpoint.as_view(http_method_names=["get", "post"]),
|
|
name="project-members",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/project-members/<uuid:pk>/",
|
|
ProjectMemberDetailAPIEndpoint.as_view(http_method_names=["patch", "delete", "get"]),
|
|
name="project-member",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/members/",
|
|
WorkspaceMemberAPIEndpoint.as_view(http_method_names=["get"]),
|
|
name="workspace-members",
|
|
),
|
|
]
|