From 30682fbecc24c0ed28e50ef810773d321bb43b4a Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 9 Nov 2020 01:38:06 +0100 Subject: [PATCH] Document the re-generate all previews endpoint --- .../src/main/resources/docspell-openapi.yml | 23 +++++++++++++++++++ modules/webapp/src/main/webjar/docspell.css | 3 --- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index c9c1a6ed..3ef90ff3 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -1069,6 +1069,29 @@ paths: schema: $ref: "#/components/schemas/BasicResult" + /sec/collective/previews: + post: + tags: [ Collective ] + summary: Starts the generate previews task + description: | + Submits a task that re-generates preview images of all + attachments of the current collective. Each existing preview + image will be replaced. + + This can be used after changing the `preview` settings. + + If only preview images of selected attachments should be + regenerated, see the `/sec/attachment/{id}/preview` endpoint. + security: + - authTokenHeader: [] + responses: + 200: + description: Ok + content: + application/json: + schema: + $ref: "#/components/schemas/BasicResult" + /sec/user: get: tags: [ Collective ] diff --git a/modules/webapp/src/main/webjar/docspell.css b/modules/webapp/src/main/webjar/docspell.css index 8dad246b..39b329ff 100644 --- a/modules/webapp/src/main/webjar/docspell.css +++ b/modules/webapp/src/main/webjar/docspell.css @@ -93,9 +93,6 @@ padding: 0.8em; } -.default-layout .ui.card div.image { - background: #fff; -} .default-layout img.preview-image { max-width: 160px; margin-left: auto;