django-small-view-set 0.2.8__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_small_view_set-0.2.8.dist-info → django_small_view_set-1.0.0.dist-info}/METADATA +4 -3
- {django_small_view_set-0.2.8.dist-info → django_small_view_set-1.0.0.dist-info}/RECORD +4 -4
- {django_small_view_set-0.2.8.dist-info → django_small_view_set-1.0.0.dist-info}/LICENSE +0 -0
- {django_small_view_set-0.2.8.dist-info → django_small_view_set-1.0.0.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: django-small-view-set
|
3
|
-
Version: 0.
|
3
|
+
Version: 1.0.0
|
4
4
|
Summary: A lightweight and explicit Django ViewSet alternative with minimal abstraction and full async support
|
5
5
|
Home-page: https://github.com/nateonguitar/django-small-view-set
|
6
6
|
License: MIT
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
19
19
|
|
20
20
|
# Django Small View Set
|
21
21
|
|
22
|
-
A lightweight and explicit Django ViewSet alternative with minimal abstraction and full async support.
|
22
|
+
A lightweight and explicit Django ViewSet alternative with minimal abstraction and full `async` support.
|
23
23
|
|
24
24
|
Designed for clear patterns, minimal magic, and complete control over your API endpoints.
|
25
25
|
|
@@ -33,7 +33,7 @@ from small_view_set SmallViewSetConfig
|
|
33
33
|
SMALL_VIEW_SET_CONFIG = SmallViewSetConfig()
|
34
34
|
```
|
35
35
|
|
36
|
-
|
36
|
+
This will get you up and running, but it is recommended to write your own [Custom exception handler](./README_CUSTOM_EXCEPTION_HANDLER.md)
|
37
37
|
|
38
38
|
Please note, endpoints cannot be registered in `urls.py` with the
|
39
39
|
request method (like POST, or GET), therefore create a `collection` and/or `detail` orchestrator
|
@@ -55,6 +55,7 @@ class BarViewSet(SmallViewSet):
|
|
55
55
|
path('api/bars/<int:pk>/', self.detail, name='bars_detail'),
|
56
56
|
path('api/bars/items/', self.items, name='bars_items'),
|
57
57
|
]
|
58
|
+
|
58
59
|
@endpoint(allowed_methods=['GET', 'POST'])
|
59
60
|
def collection(self, request: Request):
|
60
61
|
if request.method == 'GET':
|
@@ -5,7 +5,7 @@ small_view_set/decorators.py,sha256=o5qkbnhFKVL47PVZKozyQoC3beuzl6MtsleKhKHofj8,
|
|
5
5
|
small_view_set/exceptions.py,sha256=5VaPS9m9syhag7p-gveG7Dep4DV3YQ7WjI1Sv5C_1N0,966
|
6
6
|
small_view_set/helpers.py,sha256=C05Q-KVeAvmOg7hhNVO3-ti8k0esidZ5OpRQUQNEH40,5126
|
7
7
|
small_view_set/small_view_set.py,sha256=-MYj1qbGRD0mLuWoJFxua7fwAry7crgMSZHCzqL2PVc,2581
|
8
|
-
django_small_view_set-0.
|
9
|
-
django_small_view_set-0.
|
10
|
-
django_small_view_set-0.
|
11
|
-
django_small_view_set-0.
|
8
|
+
django_small_view_set-1.0.0.dist-info/LICENSE,sha256=M4ZuHeiGHHuewaZyqz7tol4E6E2GMz7fF1ywNoXD1tA,1069
|
9
|
+
django_small_view_set-1.0.0.dist-info/METADATA,sha256=JVhTrFz8uLXng3r9XaMlkvX7Q7Kr9lfYDrAwzs99hgY,4240
|
10
|
+
django_small_view_set-1.0.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
11
|
+
django_small_view_set-1.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|