from django.urls import path from plane.app.views import ( IntegrationViewSet, WorkspaceIntegrationViewSet, GithubRepositoriesEndpoint, GithubRepositorySyncViewSet, GithubIssueSyncViewSet, GithubCommentSyncViewSet, BulkCreateGithubIssueSyncEndpoint, SlackProjectSyncViewSet, ) urlpatterns = [ path( "integrations/", IntegrationViewSet.as_view( { "get": "list", "post": "create", } ), name="integrations", ), path( "integrations//", IntegrationViewSet.as_view( { "get": "retrieve", "patch": "partial_update", "delete": "destroy", } ), name="integrations", ), path( "workspaces//workspace-integrations/", WorkspaceIntegrationViewSet.as_view( { "get": "list", } ), name="workspace-integrations", ), path( "workspaces//workspace-integrations//", WorkspaceIntegrationViewSet.as_view( { "post": "create", } ), name="workspace-integrations", ), path( "workspaces//workspace-integrations//provider/", WorkspaceIntegrationViewSet.as_view( { "get": "retrieve", "delete": "destroy", } ), name="workspace-integrations", ), # Github Integrations path( "workspaces//workspace-integrations//github-repositories/", GithubRepositoriesEndpoint.as_view(), ), path( "workspaces//projects//workspace-integrations//github-repository-sync/", GithubRepositorySyncViewSet.as_view( { "get": "list", "post": "create", } ), ), path( "workspaces//projects//workspace-integrations//github-repository-sync//", GithubRepositorySyncViewSet.as_view( { "get": "retrieve", "delete": "destroy", } ), ), path( "workspaces//projects//github-repository-sync//github-issue-sync/", GithubIssueSyncViewSet.as_view( { "post": "create", "get": "list", } ), ), path( "workspaces//projects//github-repository-sync//bulk-create-github-issue-sync/", BulkCreateGithubIssueSyncEndpoint.as_view(), ), path( "workspaces//projects//github-repository-sync//github-issue-sync//", GithubIssueSyncViewSet.as_view( { "get": "retrieve", "delete": "destroy", } ), ), path( "workspaces//projects//github-repository-sync//github-issue-sync//github-comment-sync/", GithubCommentSyncViewSet.as_view( { "post": "create", "get": "list", } ), ), path( "workspaces//projects//github-repository-sync//github-issue-sync//github-comment-sync//", GithubCommentSyncViewSet.as_view( { "get": "retrieve", "delete": "destroy", } ), ), ## End Github Integrations # Slack Integration path( "workspaces//projects//workspace-integrations//project-slack-sync/", SlackProjectSyncViewSet.as_view( { "post": "create", "get": "list", } ), ), path( "workspaces//projects//workspace-integrations//project-slack-sync//", SlackProjectSyncViewSet.as_view( { "delete": "destroy", "get": "retrieve", } ), ), ## End Slack Integration ]