Files
octopus/myproject/integrations/urls.py
Andrey Smakotin b1b56fbb2e feat(integrations): добавлена проверка соединения для Recommerce
- Добавлен endpoint /test/<integration_id>/ для тестирования соединений
- RecommerceService упрощён под реальное API (x-auth-token + store_url)
- Кнопка "Проверить подключение" в UI с обработкой статусов
- Миграция для удаления IntegrationConfig и обновления полей

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 00:57:35 +03:00

22 lines
772 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from django.urls import path
from .views import (
IntegrationsListView,
toggle_integration,
save_integration_settings,
get_integration_form_data,
test_integration_connection,
)
app_name = 'integrations'
urlpatterns = [
# Страница со списком интеграций
path("", IntegrationsListView.as_view(), name="list"),
# API endpoints для управления интеграциями
path("toggle/<str:integration_id>/", toggle_integration, name="toggle"),
path("settings/<str:integration_id>/", save_integration_settings, name="settings"),
path("form/<str:integration_id>/", get_integration_form_data, name="form_data"),
path("test/<str:integration_id>/", test_integration_connection, name="test"),
]