[PR #4103] [MERGED] Image API Endpoints #6303

Closed
opened 2026-02-05 10:28:53 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/4103
Author: @ssddanbrown
Created: 3/14/2023
Status: Merged
Merged: 3/15/2023
Merged by: @ssddanbrown

Base: developmentHead: image_api


📝 Commits (3)

  • d9eec6d Started Image API build
  • 3a808fd Added phpunit tests to cover image API endpoints
  • 402eb84 Added examples, updated docs for image gallery api endpoints

📊 Changes

14 files changed (+669 additions, -22 deletions)

View changed files

📝 app/Http/Controllers/Api/ContentPermissionApiController.php (+1 -1)
app/Http/Controllers/Api/ImageGalleryApiController.php (+146 -0)
📝 app/Http/Controllers/Api/RoleApiController.php (+3 -3)
📝 app/Http/Controllers/Images/GalleryImageController.php (+3 -8)
📝 app/Uploads/Image.php (+12 -1)
dev/api/requests/image-gallery-update.json (+3 -0)
dev/api/responses/image-gallery-create.json (+28 -0)
dev/api/responses/image-gallery-list.json (+41 -0)
dev/api/responses/image-gallery-read.json (+28 -0)
dev/api/responses/image-gallery-update.json (+28 -0)
📝 resources/views/api-docs/parts/getting-started.blade.php (+2 -2)
📝 routes/api.php (+10 -3)
tests/Api/ImageGalleryApiTest.php (+347 -0)
📝 tests/Api/TestsApi.php (+17 -4)

📄 Description

Build of CRUD image endpoints for managing gallery and drawio type images.

Todo

  • Cover with auto testing.
  • Test endpoints manually.
  • Add examples for docs.
  • Check over docs, adding notes where required.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/4103 **Author:** [@ssddanbrown](https://github.com/ssddanbrown) **Created:** 3/14/2023 **Status:** ✅ Merged **Merged:** 3/15/2023 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `development` ← **Head:** `image_api` --- ### 📝 Commits (3) - [`d9eec6d`](https://github.com/BookStackApp/BookStack/commit/d9eec6d82caf2c63c8535f6842612fc6939d5d0e) Started Image API build - [`3a808fd`](https://github.com/BookStackApp/BookStack/commit/3a808fd76859a90cda0d6a4085bed053d7cabde1) Added phpunit tests to cover image API endpoints - [`402eb84`](https://github.com/BookStackApp/BookStack/commit/402eb845abe3312f6e6fe7611acd41541d8be245) Added examples, updated docs for image gallery api endpoints ### 📊 Changes **14 files changed** (+669 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controllers/Api/ContentPermissionApiController.php` (+1 -1) ➕ `app/Http/Controllers/Api/ImageGalleryApiController.php` (+146 -0) 📝 `app/Http/Controllers/Api/RoleApiController.php` (+3 -3) 📝 `app/Http/Controllers/Images/GalleryImageController.php` (+3 -8) 📝 `app/Uploads/Image.php` (+12 -1) ➕ `dev/api/requests/image-gallery-update.json` (+3 -0) ➕ `dev/api/responses/image-gallery-create.json` (+28 -0) ➕ `dev/api/responses/image-gallery-list.json` (+41 -0) ➕ `dev/api/responses/image-gallery-read.json` (+28 -0) ➕ `dev/api/responses/image-gallery-update.json` (+28 -0) 📝 `resources/views/api-docs/parts/getting-started.blade.php` (+2 -2) 📝 `routes/api.php` (+10 -3) ➕ `tests/Api/ImageGalleryApiTest.php` (+347 -0) 📝 `tests/Api/TestsApi.php` (+17 -4) </details> ### 📄 Description Build of CRUD image endpoints for managing gallery and drawio type images. ### Todo - [x] Cover with auto testing. - [x] Test endpoints manually. - [x] Add examples for docs. - [x] Check over docs, adding notes where required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:28:53 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6303