From 003a07ebce9ec9b65c8a074f3c18712f8521d623 Mon Sep 17 00:00:00 2001 From: Mial Lewis Date: Thu, 27 Nov 2025 22:00:43 +0000 Subject: [PATCH] change restore to unarchive --- models/cards.js | 8 ++++---- public/api/wekan.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/models/cards.js b/models/cards.js index 72b353cb4..a0eaaa8ca 100644 --- a/models/cards.js +++ b/models/cards.js @@ -4481,10 +4481,10 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function( ); /** - * @operation restore_card - * @summary Restore a card from the archive + * @operation unarchive_card + * @summary Unarchive card * - * @description Restore a card from the archive + * @description Unarchive card * @param {string} boardId the board ID of the card * @param {string} listId the list ID of the card * @param {string} cardId the ID of the card @@ -4492,7 +4492,7 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function( */ JsonRoutes.add( 'POST', - '/api/boards/:boardId/lists/:listId/cards/:cardId/restore', + '/api/boards/:boardId/lists/:listId/cards/:cardId/unarchive', function(req, res) { const paramBoardId = req.params.boardId; const paramCardId = req.params.cardId; diff --git a/public/api/wekan.yml b/public/api/wekan.yml index c06c1c263..947aa3862 100644 --- a/public/api/wekan.yml +++ b/public/api/wekan.yml @@ -2705,12 +2705,12 @@ paths: type: string value: type: object - /api/boards/{board}/lists/{list}/cards/{card}/restore: + /api/boards/{board}/lists/{list}/cards/{card}/unarchive: post: - operationId: restore_card - summary: Restore a card from the archive + operationId: unarchive_card + summary: Unarchive card description: | - Restore a card from the archive + Unarchive card tags: - Cards consumes: