#31 API basic implementation Token Authentication
* adds token checking to AbstractModelAPIView * adds user accessibility filtering for intervention API v1 * extends fetch_and_serialize() method to take a dict for db filtering instead of a single field and value * organizes urlnames into supporting formats like "api:v1:intervention"
This commit is contained in:
@@ -10,5 +10,5 @@ from django.urls import path, include
|
||||
app_name = "api"
|
||||
|
||||
urlpatterns = [
|
||||
path("v1/", include("api.urls.v1.urls")),
|
||||
path("v1/", include("api.urls.v1.urls", namespace="v1")),
|
||||
]
|
||||
@@ -7,8 +7,9 @@ Created on: 21.01.22
|
||||
"""
|
||||
from django.urls import path
|
||||
|
||||
from api.views.v1.intervention import APIInterventionView
|
||||
from api.views.v1.intervention import APIInterventionViewV1
|
||||
|
||||
app_name = "v1"
|
||||
urlpatterns = [
|
||||
path("intervention/<identifier>", APIInterventionView.as_view(), name="api-intervention"),
|
||||
path("intervention/<identifier>", APIInterventionViewV1.as_view(), name="intervention"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user