Dan Brown
6d7ffab115
Deps: Updated PHP composer dependancy versions, fixed test namespaces
2025-07-27 11:24:54 +01:00
Dan Brown
32ba3a591f
ZIP Imports: Added API examples, finished testing
...
Also updated some types on a couple of controllers.
2025-07-18 16:19:14 +01:00
Dan Brown
73025719a4
ZIP Imports: Added API test cases
2025-07-18 14:05:32 +01:00
Dan Brown
d55684531f
API: Added zip export tests, reorganised tests
...
Extracted an extra method into helper for reuse.
2025-07-18 10:58:10 +01:00
Dan Brown
7650ebf2f9
Deps: Updated composer/npm packages, fixed test namespace
2025-05-27 15:53:46 +01:00
Dan Brown
0e69ab1938
API: Added test to cover system info endpoint
2025-05-13 20:46:11 +01:00
Dan Brown
7e1a8e5ec6
API: Added cover to book/shelf list endpoints
...
Aligns with what we provide in the UI.
Added/updated tests to cover, and updated API examples.
For 5180.
2024-12-13 14:21:04 +00:00
Dan Brown
55d074f1a5
Attachment API: Fixed error when name not provided in update
...
Fixes #5353
2024-12-09 11:32:15 +00:00
Dan Brown
fec44452cb
Search API: Updated handling of parent detail, added testing
...
Review of #5280 .
- Removed additional non-needed loads which could ignore permissions.
- Updated new formatter method name to be more specific on use.
- Added test case to cover changes.
- Updated API examples to align parent id/info in info to be
representative.
2024-12-03 13:51:46 +00:00
Rashad
f606711463
respective book and chapter structure added.
2024-10-27 22:50:20 +05:30
Rashad
3e656efb00
Added include func for search api
2024-10-21 02:42:49 +05:30
Dan Brown
9aa3442a17
API: Fixed lacking permission enforcement on book contents
2024-08-29 14:43:21 +01:00
Dan Brown
1ea2ac864a
Queries: Update API to align data with previous versions
...
Ensures fields returned match API docs and previous versions of
BookStack where we were accidentally returning more fields than
expected.
Updates tests to cover many of these.
Also updated clockwork to ignore image requests for less noisy
debugging.
Also updated chapter page query to not be loading all page data, via new
query in PageQueries.
2024-02-11 15:42:37 +00:00
Dan Brown
779f09bff6
Merge branch 'chapter-templates' into development
2024-02-01 12:55:38 +00:00
Dan Brown
4137cf9c8f
Default chapter templates: Updated api docs and tests
...
Also applied minor tweaks to some wording and logic.
During review of #4750
2024-02-01 12:22:16 +00:00
Dan Brown
adf1806fea
Chapters API: Added missing book_slug field
...
Was removed during previous changes, but reflected in response examples.
This adds into all standard single chapter responses.
For #4765
2024-01-16 12:06:13 +00:00
Dan Brown
2a7a81e749
Input WYSIWYG: Updated API testing, fixed description set issue
...
Fixed issue where an existing description_html field would not be
updated via 'description' input.
2023-12-22 13:17:23 +00:00
Dan Brown
a21ca44633
Input WYSIWYG: Fixed existing tests, fixed empty description handling
2023-12-20 17:21:09 +00:00
Dan Brown
56d07f1909
Users API: Fixed sending invite when using form requests
...
- Cast send_invite value in cases where it might not have been a boolean,
which occurs on non-JSON requests.
- Added test to cover.
- Updated API docs to mention and shown boolean usage.
2023-12-13 15:13:54 +00:00
Dan Brown
4017048555
Page Templates: Changed template field name, added API support
2023-12-12 12:14:00 +00:00
Dan Brown
8e3f8de627
Notifications: Reorgranised classes into domain specific folders
...
Closes #4500
2023-09-11 19:27:36 +01:00
Dan Brown
9ca1139ab0
API: Reviewed changes for API priority control
...
Review of #4313
- Made constructor changes while reviewing some classes.
- Updated API examples for consistency.
- Tweaked formatting for some array changes.
- Simplified added tests.
- Tweaked chapter/page repo priority handling to be simpler.
Performed manual API endpoint testing of page/chapter create/update.
2023-08-21 15:42:47 +01:00
Jean-René ROUET
3a36d3c847
add tests for priority
2023-07-11 14:11:13 +02:00
Dan Brown
38883e8d46
API Docs: Allowed multi-paragraph descriptions
...
Added support for mulit-line endpoint descriptions via blank
intermediate lines in php controller method docblocks.
Also tweaks endpoint header design for better flexing and alignment.
2023-06-20 23:44:39 +01:00
Dan Brown
8b935e71d1
Pages API: Made raw_html available on page responses
...
To provide a way to see the original un-pre-processed database HTML
content.
For #4310
2023-06-20 17:07:46 +01:00
Dan Brown
41c3ed154b
Content Permissions API: Fixed param combination bug
...
Fixes issue where providing owner_id alongside certain
fallback_permissions would cause the owner change not to take affect,
due to bad variable shadowing.
For #4323
2023-06-20 14:13:26 +01:00
Dan Brown
00b5dd7852
Users API: Fixed incorrect created_at date on index endpoint
...
For #4325
2023-06-17 18:18:17 +01:00
Dan Brown
ec775aec02
Merge branch 'fix-api-404' into development
2023-06-15 17:08:51 +01:00
Dan Brown
1e220c473f
API: Fixed misaligned image datetime format
...
For #4294
2023-06-10 10:54:56 +01:00
Thomas Kuschan
ecf99fa0ed
Add test showing the "HTTP 500 on not found" bug
2023-06-08 09:53:53 +02:00
Dan Brown
0323ebccd3
Chapters API: Allowed move via book_id property
...
Aligns it with pages and with the book_id property already being part of
the API.
For #4272 .
2023-05-30 20:55:24 +01:00
Dan Brown
cd4b612019
Image update API: added update image file ability
2023-05-29 15:06:17 +01:00
Dan Brown
295cd01605
Played around with a new app structure
2023-05-17 17:56:55 +01:00
Dan Brown
3a808fd768
Added phpunit tests to cover image API endpoints
2023-03-14 19:29:08 +00:00
Dan Brown
0de7530059
Tweaked content permission endpoints, covered with tests
2023-03-13 20:06:52 +00:00
Dan Brown
9502f349a2
Updated test to have reliable check ordering
2023-02-18 19:01:38 +00:00
Dan Brown
723f108bd9
Aded roles API controller methods
...
Altered & updated permissions repo, and existing connected
RoleController to suit.
Also extracts in-app success notifications to auto activity system.
Tweaked tests where required.
2023-02-18 18:36:34 +00:00
Dan Brown
55456a57d6
Added tests for not-yet-built role API endpoints
2023-02-18 13:51:18 +00:00
Dan Brown
da1a66abd3
Extracted test file handling to its own class
...
Closes #3995
2023-02-08 14:39:13 +00:00
Dan Brown
c724bfe4d3
Copied over work from user_permissions branch
...
Only that relevant to the additional testing work.
2023-01-21 11:08:34 +00:00
Dan Brown
0f68be608d
Removed most usages of restricted entitiy property
2022-10-10 16:58:26 +01:00
Dan Brown
900e853b15
Quick run through of applying new test entity helper class
2022-09-29 22:11:16 +01:00
Dan Brown
b56f7355aa
Migrated much test entity usage via find/replace
2022-09-29 17:31:38 +01:00
Dan Brown
068a8a068c
Extracted entity testcase methods to own class
...
Also added some new fetch helper methods for future use.
2022-09-29 16:49:25 +01:00
Dan Brown
0e94fd44a8
Added contents to book-show endpoint
...
Created a generic list formatting helper class for this, to align with
logic used on the search results endpoint and for easier future re-use
in a standardised way.
Also updated some class property types.
Added test to cover new books-contents results.
Related to #3734
2022-09-29 15:08:18 +01:00
Dan Brown
2989852520
Added simple data model for faster permission generation
2022-07-12 21:13:02 +01:00
Dan Brown
ba25dda031
Applied styleci changes for conversion work
2022-06-19 18:14:53 +01:00
Dan Brown
65d4505079
Added tests and doc updates for shelf/book cover image API abilities
2022-06-19 17:26:23 +01:00
Dan Brown
f1a8ad4980
Applied latest StyleCI changes
2022-04-25 18:42:31 +01:00
Dan Brown
d5b7fff102
Merge branch 'recycle_bin_api_endpoints' into development
2022-04-25 18:32:55 +01:00