Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: correct api schema for next_asn (#10151)

shamoon8d48e9948796
diff --git a/src/documents/views.py b/src/documents/views.py
index afd36c7f5..1b9b35226 100644
--- a/src/documents/views.py
+++ b/src/documents/views.py
@@ -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):