mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
API lacks GET request for lables #236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zev-se on GitHub (Oct 14, 2022).
It seems there's a API request missing a request to list the available labels (already created ones). I found exposed API requests in this file: https://github.com/plankanban/planka/blob/master/server/config/routes.js
There we can see the possibility to add, change and delete labels but not listing them. This also seems supported in the code as shown by this file: https://github.com/plankanban/planka/blob/master/server/api/helpers/card-labels/get-many.js
I guess the reasonable place to put this is here: 'GET /api/boards/:boardId/lables': 'lables/index'.
@CollierKing commented on GitHub (Jan 3, 2023):
This action is possible as explained here:
https://github.com/plankanban/planka/issues/362#issuecomment-1369229733