bottleneckcrm/backend/webforms/urls.py
Ashwin 41250838ad Add comprehensive tests for web forms functionality
- Implement tests for web forms screen to ensure proper rendering and behavior on different devices.
- Create unit tests for web form model to validate JSON serialization and deserialization.
- Add tests for web forms provider to verify API interactions and state management.
- Ensure that publishing rules and field validations are correctly enforced in the tests.
2026-08-17 13:33:14 +05:30

26 lines
701 B
Python

from django.urls import path
from webforms import views
app_name = "api_webforms"
urlpatterns = [
path("", views.WebFormListCreateView.as_view(), name="list_create"),
path("<uid:pk>/", views.WebFormDetailView.as_view(), name="detail"),
path("<uid:pk>/publish/", views.WebFormPublishView.as_view(), name="publish"),
path(
"<uid:pk>/unpublish/",
views.WebFormUnpublishView.as_view(),
name="unpublish",
),
path(
"<uid:pk>/submissions/",
views.WebFormSubmissionListView.as_view(),
name="submissions",
),
path(
"<uid:pk>/analytics/",
views.WebFormAnalyticsView.as_view(),
name="analytics",
),
]