#31 API basic implementation Refactor
* reorganizes code into proper api/utils/serializer subclasses to keep serialization logic away from regular view logic
This commit is contained in:
@@ -7,15 +7,12 @@ Created on: 21.01.22
|
||||
"""
|
||||
from django.urls import path
|
||||
|
||||
from api.views.v1.compensation import APICompensationViewV1
|
||||
from api.views.v1.ecoaccount import APIEcoAccountViewV1
|
||||
from api.views.v1.ema import APIEmaViewV1
|
||||
from api.views.v1.intervention import APIInterventionViewV1
|
||||
from api.views.v1.views import EmaAPIViewV1, EcoAccountAPIViewV1, CompensationAPIViewV1, InterventionAPIViewV1
|
||||
|
||||
app_name = "v1"
|
||||
urlpatterns = [
|
||||
path("intervention/<id>", APIInterventionViewV1.as_view(), name="intervention"),
|
||||
path("compensation/<id>", APICompensationViewV1.as_view(), name="compensation"),
|
||||
path("ecoaccount/<id>", APIEcoAccountViewV1.as_view(), name="ecoaccount"),
|
||||
path("ema/<id>", APIEmaViewV1.as_view(), name="ema"),
|
||||
path("intervention/<id>", InterventionAPIViewV1.as_view(), name="intervention"),
|
||||
path("compensation/<id>", CompensationAPIViewV1.as_view(), name="compensation"),
|
||||
path("ecoaccount/<id>", EcoAccountAPIViewV1.as_view(), name="ecoaccount"),
|
||||
path("ema/<id>", EmaAPIViewV1.as_view(), name="ema"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user