Skip to content

Commit dede456

Browse files
committed
Fix API schema generation by adding docstring to rq-status endpoint
1 parent d487ca7 commit dede456

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@
3333

3434
# 0.3.4
3535

36-
* Added git sync action to API
36+
* Added git sync action to API
37+
38+
# 0.3.5
39+
40+
* Fix API schema generation by adding docstring to rq-status endpoint

netbox_script_manager/api/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,7 @@ class RqStatusViewSet(viewsets.ViewSet):
185185

186186
@extend_schema(responses={200: OpenApiTypes.OBJECT})
187187
def list(self, request):
188+
"""
189+
Returns the status of the RQ workers.
190+
"""
188191
return Response(get_statistics())

0 commit comments

Comments
 (0)