You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: django_api_versioning/decorators.py
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,16 @@ def endpoint(
20
20
- Ensures that no version lower than `API_MIN_VERSION` is registered.
21
21
22
22
Args:
23
-
postfix (str): The endpoint suffix (e.g., "users" → "api/v1/users").
24
-
version (Optional[int]): The version of the API. Defaults to None (unversioned).
25
-
backward (bool): If True, registers routes for all versions from `API_MIN_VERSION` up to the current version, which is less than or equal to `API_MAX_VERSION`. Defaults to True.
26
-
app_name (Optional[str]): The app name to be prefixed to the route.
23
+
postfix (str): The endpoint suffix (e.g., "users" →
24
+
"api/v1/users").
25
+
version (Optional[int]): The version of the API. Defaults
26
+
to None (unversioned).
27
+
backward (bool): If True, registers routes for all versions
28
+
from `API_MIN_VERSION` up to the current
29
+
version, which is less than or equal to
30
+
`API_MAX_VERSION`. Defaults to True.
31
+
app_name (Optional[str]): The app name to be prefixed to
32
+
the route.
27
33
view_name (Optional[str]): The custom view name for Django.
0 commit comments