From e68ee67aec9e876a327260a0f40551c728866e6f Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 19 Oct 2020 13:45:14 +0200 Subject: [PATCH] Fix route in openapi spec for uploading --- modules/restapi/src/main/resources/docspell-openapi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index 6e809aad..7f5a439c 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -212,7 +212,7 @@ paths: application/json: schema: $ref: "#/components/schemas/CheckFileResult" - /sec/upload: + /sec/upload/item: post: tags: [ Upload ] summary: Upload files to docspell. @@ -226,7 +226,7 @@ paths: The request must be a "multipart/form-data" request, where the first part is optional and may contain upload metadata as JSON. Other parts specify the files. Multiple files can be - specified, but at least on is required. + specified, but at least one is required. The upload meta data can be used to tell, whether multiple files are one item, or if each file should become a single