From 8ffbf651b08262b8137e695a4969c8d1b9b646ff Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 22 Jun 2020 21:00:34 +0200 Subject: [PATCH] Add fts routes to openapi.yml --- .../src/main/resources/docspell-openapi.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index fc87b250..cdb897d0 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -151,6 +151,46 @@ paths: application/json: schema: $ref: "#/components/schemas/BasicResult" + /open/fts/reIndexAll/{id}: + post: + tags: [Full-Text Index] + summary: Re-creates the full-text index. + description: | + Clears the full-text index and inserts all data from the + database. This migh take a while to complete. The response + returns immediately. A task is submitted that will be executed + by a job executor. Note that this affects all data of all + collectives. + + The `id` is required and refers to the key given in the config + file to ensure that only admins can call this route. + parameters: + - $ref: "#/components/parameters/id" + responses: + 200: + description: Ok + content: + application/json: + schema: + $ref: "#/components/schemas/BasicResult" + + /sec/fts/reIndex: + post: + tags: [Full-Text Index] + summary: Re-creates the full-text index for the current collective + description: | + Clears the full-text index for all data belonging to the + current collective and inserts the data from the database. The + response is immediately returned and a task is submitted that + will be executed by a job executor. + responses: + 200: + description: Ok + content: + application/json: + schema: + $ref: "#/components/schemas/BasicResult" + /sec/checkfile/{checksum}: get: tags: [ Upload ]