]> BookStack Code Mirror - bookstack/commit
API: Reviewed changes for API priority control
authorDan Brown <redacted>
Mon, 21 Aug 2023 14:40:53 +0000 (15:40 +0100)
committerDan Brown <redacted>
Mon, 21 Aug 2023 14:42:47 +0000 (15:42 +0100)
commit9ca1139ab0d0f5dd8d8eda4e9cd96f6c33530344
tree63e45a1ae0e620c9b1efaa03d40562dc0f590115
parent3a36d3c847d235da3926f80303715e5349ee449f
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.
12 files changed:
app/Api/ApiEntityListFormatter.php
app/Entities/Repos/ChapterRepo.php
app/Entities/Repos/PageRepo.php
dev/api/requests/chapters-create.json
dev/api/requests/chapters-update.json
dev/api/requests/pages-create.json
dev/api/requests/pages-update.json
dev/api/responses/chapters-create.json
dev/api/responses/chapters-update.json
dev/api/responses/pages-create.json
tests/Api/ChaptersApiTest.php
tests/Api/PagesApiTest.php