Commit Graph

37 Commits

Author SHA1 Message Date
Carl Schwan
5cf486150a refactor: Fix psalm issues
- Add typing for most of the services, controllers and mappers
- Add api doc for mappers
- Use vendor-bin for psalm
- Use attributes for controllers
- Fix upload of attachments

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-09-28 11:49:06 +02:00
Viktor Diezel
eee35ac6ad fix: parse arguments to CardService.reorder correctly to int
Signed-off-by: Viktor Diezel <viktor.diezel@posteo.de>
2025-08-07 11:54:55 +02:00
Julius Knorr
c630d3e809 Merge pull request #6138 from xyjonas/programmatic-archive-unarchive-card
Feat(REST API): add url to (un)archive cards
2025-01-02 15:55:47 +01:00
Julius Knorr
86cb011a5c style: Fix php-cs issues
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2024-12-17 09:22:00 +01:00
Jonas H. Steiner
e986ca31a1 Feat(REST API): add url to (un)archive cards
Signed-off-by: Jonas H. Steiner <jsteiner@plusline.net>
2024-08-29 12:33:01 +02:00
Andy Scherzinger
be11113d32 chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-07 15:51:49 +02:00
Julius Härtl
27d5861456 fix: Allow optional nullable parameters in the API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-08 12:59:35 +01:00
Thanos Kamber
c3b4ed6e1f Added ability to mark card as done
Closes #534

Signed-off-by: Thanos Kamber <thanos.kamber@gmail.com>
2023-11-08 12:59:27 +01:00
Luka Trovic
12217afe65 feat: create new card from smart picker
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2023-08-09 13:25:27 +02:00
Faraz Samapoor
559579fbd9 Refactors controllers by using PHP8's constructor property promotion.
Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-14 15:42:44 +03:30
Julius Härtl
0985f24f57 chore: Fix php-cs-fixer errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-05 22:26:08 +02:00
Simon Spannagel
3dfc33378d CardApiController: Fix order of optional parameters
Signed-off-by: Simon Spannagel <simonspa@kth.se>
2022-01-07 11:31:32 +01:00
Julius Härtl
f6eea0e467 Refactor update to have proper order of optional parameters
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-28 14:13:25 +02:00
Julius Härtl
8b7a30ce4f Expose ETag on single object get methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-10 16:01:20 +01:00
Julius Härtl
52febb396c Fix php cs issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-22 19:57:19 +02:00
Julius Härtl
3c6a177da9 Add backend for assigning groups to cards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-01 20:52:09 +02:00
Julius Härtl
1781aaafb7 Allow to set duedate during card creation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-29 12:37:04 +02:00
alexandru.puiu
002587523f Add empty default value to description parameter and remove the tabs from the empty lines
Signed-off-by: alexandru.puiu <alexandrup@newro.co>
2019-08-19 11:40:03 +03:00
alexandru.puiu
313ceb9a95 Able to set description on creation card via API.
Signed-off-by: alexandru.puiu <alexandrup@newro.co>
2019-08-19 11:00:56 +03:00
Julius Härtl
1811dc73b7 Fix ACL and archived REST endpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-06-30 13:27:22 +02:00
Julius Härtl
b72d1c82a9 Add proper annotations for assignUser
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-13 17:24:13 +01:00
Julius Härtl
a026ebf094 Add change database helper
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-11-05 14:53:01 +01:00
Julius Härtl
a068d6e1c6 Add last_modified to board/stack database and add check on index methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-11-05 13:23:26 +01:00
Julius Härtl
5639bd1274 Fix controller deleted at parameter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-15 21:15:23 +02:00
Julius Härtl
babfcbddd8 Fix imports
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-15 21:15:23 +02:00
Ryan Fletcher
3e965d0cfb Implemented additional CardApiController endpoints
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:21 +02:00
Ryan Fletcher
507a7fd243 Code cleanup, removing unused code from older iteration.
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:21 +02:00
Ryan Fletcher
9c81584b02 Wrote tests for CardApiControllerTest.php
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:20 +02:00
Ryan Fletcher
5bc8a363b9 Split Card Update in CardApiController as it was gigantic and broke codacy complexity rules by a lot. Also moved validation checks into respective services.
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:20 +02:00
Ryan Fletcher
dd1d4246fe Finished Error handling across the API
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:17 +02:00
Ryan Fletcher
2668f6b80c committing WIP (improving error validation across the api's)
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:17 +02:00
Ryan Fletcher
7d9fc83dc9 Code style fixings.
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:16 +02:00
Ryan Fletcher
6002067b64 Created LabelApiController and it's get / update methods.
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:16 +02:00
Ryan Fletcher
7e4d24236a Updated the CardApiController->update method to allow updating of archive state and assigned user,.
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:15 +02:00
Ryan Fletcher
b82591a0bc Added delete operation to CardApiController
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:15 +02:00
Ryan Fletcher
e5f7f89ed9 Wrote update method for CardApiController
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:15 +02:00
Ryan Fletcher
a68e888654 Started CardApiController
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
2018-08-15 21:15:15 +02:00