mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
Fix: correct api schema for next_asn (#10151)
This commit is contained in:
parent
454a2d9e9e
commit
8d48e99487
1 changed files with 6 additions and 0 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue