BookStack/app
Dan Brown ff8dadefee
Reviewed recycle bin API PR and made changes
Made the following changes, many of these are just to align with
existing conventions.

- Updated urls to be hypenated, instead of underscored, to match other system endpoints.
- Updated URL parameter to be `deletionId` instead of `id`, and removed the ID-based comment on controller methods, so the required ID model is clear from the URL alone, since its not clear from the URL endpoint alone like existing endpoints. This follows the pattern used in the "web" routes.
- Added extra detail on some controller method comments, and copied permission comment to each method.
- Removed existing field visibility mechanisms to use simpler model-based visibility since we didn't need anything too special here (After some of my other changes).
- Allowed the "deletable" model to be shown in response to provide a little more detail on the main deleted item.
- Updated parent/child-count loading to be on the "deletable" model instead of additional properties which results in simpler controller logic and enforces the idea these are relations on the deletable, not the deletion itself. It also removes additional exposure of model namespacing.
- Updated (int) casts to intval, just since that's our most common conversion method in the codebase.
- Testing: Removed `actingAsAuthorizedUser` and used the admin user instead to prevent extra auth steps on each test.
- Testing: Cut logic/data-checks from tests if already covered by other tests.
- Testing: Added simple assertions for delete/restore response data.
- Examples: Updated list example to reflect changes.

Review of PR #3377
To be followed up with changes to polymorphic relations to hide
namespacing.
2022-04-25 17:54:59 +01:00
..
Actions PHPStan and StyleCI fixes 2022-03-28 11:31:06 +01:00
Api Updated with latest styleci changes 2022-02-08 15:29:58 +00:00
Auth Applied latest styleCI changes 2022-03-25 11:14:27 +00:00
Config Updated translation contributors, added Basque to language options 2022-03-30 13:12:17 +01:00
Console Made a pass to clean up UserRepo 2022-02-13 12:56:26 +00:00
Entities Reviewed recycle bin API PR and made changes 2022-04-25 17:54:59 +01:00
Exceptions Updated OIDC error handling for better error reporting 2022-02-24 14:16:09 +00:00
Facades Added ability to clone books 2021-12-19 19:20:31 +00:00
Http Reviewed recycle bin API PR and made changes 2022-04-25 17:54:59 +01:00
Interfaces Tweaked custom command registration, Added StyleCI fixes 2021-11-22 22:22:31 +00:00
Notifications Added language select to the user create form 2022-01-31 22:15:21 +00:00
Providers Added user-update API endpoint 2022-02-03 16:52:28 +00:00
Settings Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Theming Added extendable/scalable formatter for webhook data 2022-03-26 16:53:02 +00:00
Traits Done a round of phpstan fixes 2021-11-06 00:32:01 +00:00
Translation Apply fixes from StyleCI 2021-08-21 14:49:40 +00:00
Uploads Fixed tests, applied StyleCI changes 2022-03-26 20:38:03 +00:00
Util Applied latest styleCI changes 2022-03-09 14:30:36 +00:00
Application.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
helpers.php Merge branch 'v21.05.x' 2021-07-03 12:02:13 +01:00
Model.php Applied latest StyleCI changes 2021-11-06 22:00:33 +00:00