mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Fix: correct api schema for next_asn (#10151)
This commit is contained in:
@@ -1099,6 +1099,12 @@ class DocumentViewSet(
|
|||||||
200: DocumentSerializer(many=True, all_fields=True),
|
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):
|
class UnifiedSearchViewSet(DocumentViewSet):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user