django-small-view-set 0.2.9__tar.gz → 1.0.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-small-view-set
3
- Version: 0.2.9
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
- ^^^ This will get you up and running, but it is recommended to write your own [Custom exception handler](./README_CUSTOM_EXCEPTION_HANDLER.md)
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':
@@ -1,6 +1,6 @@
1
1
  # Django Small View Set
2
2
 
3
- A lightweight and explicit Django ViewSet alternative with minimal abstraction and full async support.
3
+ A lightweight and explicit Django ViewSet alternative with minimal abstraction and full `async` support.
4
4
 
5
5
  Designed for clear patterns, minimal magic, and complete control over your API endpoints.
6
6
 
@@ -14,7 +14,7 @@ from small_view_set SmallViewSetConfig
14
14
  SMALL_VIEW_SET_CONFIG = SmallViewSetConfig()
15
15
  ```
16
16
 
17
- ^^^ This will get you up and running, but it is recommended to write your own [Custom exception handler](./README_CUSTOM_EXCEPTION_HANDLER.md)
17
+ This will get you up and running, but it is recommended to write your own [Custom exception handler](./README_CUSTOM_EXCEPTION_HANDLER.md)
18
18
 
19
19
  Please note, endpoints cannot be registered in `urls.py` with the
20
20
  request method (like POST, or GET), therefore create a `collection` and/or `detail` orchestrator
@@ -36,6 +36,7 @@ class BarViewSet(SmallViewSet):
36
36
  path('api/bars/<int:pk>/', self.detail, name='bars_detail'),
37
37
  path('api/bars/items/', self.items, name='bars_items'),
38
38
  ]
39
+
39
40
  @endpoint(allowed_methods=['GET', 'POST'])
40
41
  def collection(self, request: Request):
41
42
  if request.method == 'GET':
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "django-small-view-set"
7
- version = "0.2.9"
7
+ version = "1.0.0"
8
8
  description = "A lightweight and explicit Django ViewSet alternative with minimal abstraction and full async support"
9
9
  readme = "README.md"
10
10
  authors = ["Nate Brooks"]