[PR #3674] [CLOSED] API - Search pages by slug #6251

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

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/3674
Author: @n0nag0n
Created: 8/24/2022
Status: Closed

Base: developmentHead: development


📝 Commits (1)

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 app/Http/Controllers/Api/PageApiController.php (+8 -1)
dev/api/requests/pages-list.http (+2 -0)

📄 Description

I have a specific need where I need to take a wiki url and make it work "backwards" by searching for the slug and then determining the book. We have hundreds of articles and pulling back hundreds of articles every time to start comparing slugs and books would make it cumbersome and resource intensive.

I've never used Laravel before, but I think I got the code added in correctly and I think I got the API docs page updated as well. Couldn't get docker working, but I did live testing on the repo I'm hosting on my server and the changes worked as I hoped they would. Tweak whatever you need to tweak.


🔄 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/3674 **Author:** [@n0nag0n](https://github.com/n0nag0n) **Created:** 8/24/2022 **Status:** ❌ Closed **Base:** `development` ← **Head:** `development` --- ### 📝 Commits (1) - [`21cf76b`](https://github.com/BookStackApp/BookStack/commit/21cf76ba5d8003ce49356ad7692bca0bd14d1318) search pages by slug ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controllers/Api/PageApiController.php` (+8 -1) ➕ `dev/api/requests/pages-list.http` (+2 -0) </details> ### 📄 Description I have a specific need where I need to take a wiki url and make it work "backwards" by searching for the slug and then determining the book. We have hundreds of articles and pulling back hundreds of articles every time to start comparing slugs and books would make it cumbersome and resource intensive. I've never used Laravel before, but I think I got the code added in correctly and I think I got the API docs page updated as well. Couldn't get docker working, but I did live testing on the repo I'm hosting on my server and the changes worked as I hoped they would. Tweak whatever you need to tweak. --- <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:27:43 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6251