deck icon indicating copy to clipboard operation
deck copied to clipboard

API return List<dynamic> instead Settings object

Open JesperBllnbm opened this issue 4 months ago • 0 comments

Describe the bug Using the API I expect the a settings object like this:

  "settings": {
            "notify-due": "off",
            "calendar": true
        }

but what I get is this:

  "settings": []

full response:

╔╣ Response ║ GET ║ Status: 200 OK  ║ Time: 1434 ms
║  https:/my-server/apps/deck/api/v1.1/boards
╚══════════════════════════════════════════════════════════════════════════════════════════╝
╔ Body
║
║    [
║        {
║             "id": 14,
║             "title": "Packages",
║             "owner": {primaryKey: admin, uid: admin, displayname: admin, type: 0},
║             "color": "b9c8c",
║             "archived": false,
║             "labels": []
║             "acl": []
║             "permissions": {
║                 "PERMISSION_READ": true,
║                 "PERMISSION_EDIT": true,
║                 "PERMISSION_MANAGE": true,
║                 "PERMISSION_SHARE": true
║            }
║             "users": []
║             "shared": 0,
║             "stacks": []
║             "activeSessions": []
║             "deletedAt": 1727950189,
║             "lastModified": 1727950189,
║             "settings": []
║             "ETag": "8cc6b3682d5244a558339f31429fcf52"
║        },
║        {
║             "id": 19,
║             "title": "Toni's Tasks",
║             "owner": {primaryKey: admin, uid: admin, displayname: admin, type: 0},
║             "color": "f44b97",
║             "archived": false,
║             "labels": []
║             "acl": [
║                {
║                     "id": 7,
║                     "participant": {primaryKey: Toni, uid: Toni, displayname: Toni, type: 1},
║                     "type": 1,
║                     "boardId": 19,
║                     "permissionEdit": true,
║                     "permissionShare": false,
║                     "permissionManage": false,
║                     "owner": false
║                }
║             ],
║             "permissions": {
║                 "PERMISSION_READ": true,
║                 "PERMISSION_EDIT": true,
║                 "PERMISSION_MANAGE": true,
║                 "PERMISSION_SHARE": true
║            }
║             "users": []
║             "shared": 0,
║             "stacks": []
║             "activeSessions": []
║             "deletedAt": 0,
║             "lastModified": 1727983933,
║             "settings": []
║             "ETag": "dfb745d16bad3cdcfe880767e75fe237"
║        }
║    ]
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝

Deck version: 1.13.2 Nextcloud version: 29.0.5

JesperBllnbm avatar Oct 03 '24 19:10 JesperBllnbm