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
Julius Knorr
86cb011a5c
style: Fix php-cs issues
...
Signed-off-by: Julius Knorr <jus@bitgrid.net >
2024-12-17 09:22:00 +01: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
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
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
af57c3bf4f
Fix If-Modified-Since header parsing
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-12-20 08:27:13 +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
172a80fa5d
Added additional endpoints for cards / stacks
...
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
f2268c7f58
Moved Data Response checks into stack serivice, cleaned up related unit tests.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:20 +02:00
Ryan Fletcher
8cac183af6
simple code style changes according to codacy standards.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:20 +02:00
Ryan Fletcher
570ac81848
added the create tests in StackApiControllerTest
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:19 +02:00
Ryan Fletcher
5719e9f134
Wrote unit tests against StackApiController -> get()
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:19 +02:00
Ryan Fletcher
891fa7b7d5
Created index tests for StackApiTestController
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:19 +02:00
Ryan Fletcher
cfd9ab98c6
Implemented StackApiController Get Function.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:17 +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
a388d199dc
Refactored error handling in StackApiController and moved it into ApiHelper.php, this will allow me to use the same checks in all controllers.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:16 +02:00
Ryan Fletcher
d9f3d492dc
Better variable name for stackService in StackApiController
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:16 +02:00
Ryan Fletcher
a14ca3d1f5
Better error handling in StackApiController
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:16 +02:00
Ryan Fletcher
5415ec21dc
Validation Checking against StackApiController
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:14 +02:00
Ryan Fletcher
3cb496daa2
Cleaned up StackApiController to use proper route parameters, removed route parameters from request payloads as per rest standards.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:14 +02:00
Ryan Fletcher
03e0559afe
StackApiController->delete($boardId, $id) added in error handling
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:14 +02:00
Ryan Fletcher
be91ff641c
StackApiController added the update put route.
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:14 +02:00
Ryan Fletcher
cec06493c0
Error handling for StackApiController->Index()
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:14 +02:00
Ryan Fletcher
8771e35f11
Added exception handling to StackApiController->create()
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:13 +02:00
Ryan Fletcher
656e8efa43
quick test in StackApiController
...
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca >
2018-08-15 21:15:13 +02:00
Steven R. Baker
8ec97032b1
Re-format code according to the coding style.
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-08-15 21:15:08 +02:00
Steven R. Baker
40f34eb3bc
Fix the routing and the stacks API endpoint.
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-08-15 21:15:07 +02:00
Steven R. Baker
a4b348488b
Add Stack support to API.
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-08-15 21:15:05 +02:00