浏览代码

change restore to unarchive

Mial Lewis 3 周之前
父节点
当前提交
003a07ebce
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 4 4
      models/cards.js
  2. 4 4
      public/api/wekan.yml

+ 4 - 4
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;

+ 4 - 4
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: