From db74fa0135dcb63618227c4235f8d852b314e244 Mon Sep 17 00:00:00 2001 From: Erwan Rouchet <rouchet@teklia.com> Date: Thu, 21 Nov 2019 11:37:34 +0100 Subject: [PATCH] Add reindex endpoint --- arkindex/schema.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/arkindex/schema.yml b/arkindex/schema.yml index 7370a34..9112846 100644 --- a/arkindex/schema.yml +++ b/arkindex/schema.yml @@ -16,7 +16,7 @@ info: name: Teklia url: https://www.teklia.com/ title: Arkindex API - version: 0.10.2 + version: 0.10.3-rc1 openapi: 3.0.2 paths: /api/v1/classification/bulk/: @@ -10556,6 +10556,57 @@ paths: security: [] tags: - elements + /api/v1/reindex/: + post: + description: Manually reindex elements, transcriptions and entities for search + APIs + operationId: Reindex + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + corpus: + type: string + drop: + type: boolean + element: + type: string + elements: + default: true + type: boolean + entities: + default: true + type: boolean + transcriptions: + default: true + type: boolean + x-name: body + responses: + '200': + content: + application/json: + schema: + properties: + corpus: + type: string + drop: + type: boolean + element: + type: string + elements: + default: true + type: boolean + entities: + default: true + type: boolean + transcriptions: + default: true + type: boolean + description: '' + tags: + - management /api/v1/transcription/: post: description: Create a single transcription on a page @@ -12370,3 +12421,5 @@ tags: name: ml - name: entities - name: users +- description: Admin-only tools + name: management -- GitLab