]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: correct api schema for next_asn (#10151)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 9 Jun 2025 16:32:34 +0000 (09:32 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Jun 2025 16:32:34 +0000 (09:32 -0700)
src/documents/views.py

index afd36c7f508f32cffc99ea9c0c98ca5cf4758d58..1b9b3522630aca9fd2fcb0af11c4317567a1a516 100644 (file)
@@ -1099,6 +1099,12 @@ class DocumentViewSet(
             200: DocumentSerializer(many=True, all_fields=True),
         },
     ),
+    next_asn=extend_schema(
+        description="Get the next available Archive Serial Number (ASN) for a new document",
+        responses={
+            200: OpenApiTypes.INT,
+        },
+    ),
 )
 class UnifiedSearchViewSet(DocumentViewSet):
     def __init__(self, *args, **kwargs):