Ajout et début de l'API REST

This commit is contained in:
Ambulance Clerc
2023-12-14 13:55:25 +01:00
parent e7ca33031b
commit b9c93b53a9
16 changed files with 170 additions and 3 deletions

15
comm_op/urls.py Normal file
View File

@@ -0,0 +1,15 @@
from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'api-comm-opmessage', views.comm_opMessageViewset, basename='comm-opmessage')
app_name = "comm_opMessage"
urlpatterns = [
path('', include(router.urls)),
]