* chore: removed v3 endpoints * chore: replace v3 issues to normal issues endpoints * build-error: Bulid error is new issue structure --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
85 lines
2 KiB
Python
85 lines
2 KiB
Python
from django.urls import path
|
|
|
|
|
|
from plane.app.views import (
|
|
IssueViewViewSet,
|
|
GlobalViewViewSet,
|
|
GlobalViewIssuesViewSet,
|
|
IssueViewFavoriteViewSet,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/views/",
|
|
IssueViewViewSet.as_view(
|
|
{
|
|
"get": "list",
|
|
"post": "create",
|
|
}
|
|
),
|
|
name="project-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/views/<uuid:pk>/",
|
|
IssueViewViewSet.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"put": "update",
|
|
"patch": "partial_update",
|
|
"delete": "destroy",
|
|
}
|
|
),
|
|
name="project-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/views/",
|
|
GlobalViewViewSet.as_view(
|
|
{
|
|
"get": "list",
|
|
"post": "create",
|
|
}
|
|
),
|
|
name="global-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/views/<uuid:pk>/",
|
|
GlobalViewViewSet.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"put": "update",
|
|
"patch": "partial_update",
|
|
"delete": "destroy",
|
|
}
|
|
),
|
|
name="global-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/issues/",
|
|
GlobalViewIssuesViewSet.as_view(
|
|
{
|
|
"get": "list",
|
|
}
|
|
),
|
|
name="global-view-issues",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/user-favorite-views/",
|
|
IssueViewFavoriteViewSet.as_view(
|
|
{
|
|
"get": "list",
|
|
"post": "create",
|
|
}
|
|
),
|
|
name="user-favorite-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/user-favorite-views/<uuid:view_id>/",
|
|
IssueViewFavoriteViewSet.as_view(
|
|
{
|
|
"delete": "destroy",
|
|
}
|
|
),
|
|
name="user-favorite-view",
|
|
),
|
|
]
|