(plugins) add endpoint to list SIRET of active organizations

Allow access to AccountService with right scope to list
SIRET of active communes
This commit is contained in:
Sabrina Demagny
2025-03-31 14:18:42 +02:00
parent 855e20d407
commit 594d3af0d0
8 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
"""API URL Configuration for La Suite plugin"""
from rest_framework.routers import DefaultRouter
from .api.viewsets import ActiveOrganizationsSiret
router = DefaultRouter()
router.register(
"la-suite/v1.0/siret",
ActiveOrganizationsSiret,
basename="active-organization-sirets",
)
urlpatterns = router.urls