#31 API Deductions
* adds GET/POST/PUT/DELETE support for EcoAccountDeductions
This commit is contained in:
@@ -7,7 +7,8 @@ Created on: 21.01.22
|
||||
"""
|
||||
from django.urls import path
|
||||
|
||||
from api.views.v1.views import EmaAPIViewV1, EcoAccountAPIViewV1, CompensationAPIViewV1, InterventionAPIViewV1
|
||||
from api.views.v1.views import EmaAPIViewV1, EcoAccountAPIViewV1, CompensationAPIViewV1, InterventionAPIViewV1, \
|
||||
DeductionAPIViewV1
|
||||
from api.views.views import InterventionCheckAPIView, InterventionAPIShareView, EcoAccountAPIShareView, EmaAPIShareView
|
||||
|
||||
app_name = "v1"
|
||||
@@ -24,6 +25,9 @@ urlpatterns = [
|
||||
path("ecoaccount/<id>", EcoAccountAPIViewV1.as_view(), name="ecoaccount"),
|
||||
path("ecoaccount/", EcoAccountAPIViewV1.as_view(), name="ecoaccount"),
|
||||
|
||||
path("deduction/<id>", DeductionAPIViewV1.as_view(), name="deduction"),
|
||||
path("deduction/", DeductionAPIViewV1.as_view(), name="deduction"),
|
||||
|
||||
path("ema/<id>/share", EmaAPIShareView.as_view(), name="ema-share"),
|
||||
path("ema/<id>", EmaAPIViewV1.as_view(), name="ema"),
|
||||
path("ema/", EmaAPIViewV1.as_view(), name="ema"),
|
||||
|
||||
Reference in New Issue
Block a user