mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
Search API (feature request) #735
Closed
opened 2026-02-04 22:06:18 +03:00 by OVERLORD
·
12 comments
No Branch/Tag Specified
development
l10n_development
further_theme_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#735
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MacChuck on GitHub (Jul 2, 2018).
Originally assigned to: @ssddanbrown on GitHub.
Desired Feature:
It would be nice for there to be an API or something to query and return search results (like from Slack or discord bots).
@msaus commented on GitHub (Jul 2, 2018):
1
@lommes commented on GitHub (Jul 2, 2018):
I totally agree with you that it would be a nice feature. It will be very challenging to implement this in a usefull way regarding authorizations
@timeandtimeago commented on GitHub (Aug 8, 2018):
+1
An API would be very useful.
@IgorZorich commented on GitHub (Oct 2, 2019):
+1
@MarcusTheSmith commented on GitHub (Nov 5, 2019):
+1
With the rise of the Headless CMS, BookStack is this one step (maybe two if you include consumption libraries for JS, etc) away from being able to have content integrated into modern webApps. Strapi just got funding for their Headless CMS and the talk of that paradigm being the new norm is growing.
@emillan commented on GitHub (Apr 2, 2020):
+1
There is already a list endpoint
/api/booksthat returns a listing of books visible to a user,maybe a simple search parameter could be added to it
@ssddanbrown commented on GitHub (Apr 4, 2020):
Hi @emillan,
It should be possible to already filter down the results of that API endpoint. Within the
/api/docsof your instance there should be a section on "Listing Endpoints". This details how you can manipulate such API endpoints as the/api/books.For example, you can call:
The get books that contain
catin their name. This system will be adopted for the other models (Chaters, pages, shelves) in the near future.Feedback on this system is greatly welcomed in issue #1852.
@gren236 commented on GitHub (Nov 8, 2021):
Would be really great for my case, as I want to search for all pages with a specific tag using API.
@ssddanbrown commented on GitHub (Nov 14, 2021):
A general search API endpoint has now been added within
6f1bdbf771. This essentially provides an API endpoint for the same system used by the main search bar within BookStack.There is some awkwardness in this endpoint, due to how the search system is implemented in the back-end, but it should hopefully address the needs here.
This will be part of the next feature release.
Preview
@JoseZamora24 commented on GitHub (Mar 8, 2024):
@ssddanbrown Hello, I saw that you have enabled searches through the API. My problem is that I want to make a query outside of my server, I am quite new to this and to bookstack and I would like to know if any previous steps must be enabled before being able to use this api. The error tells me that I do not have access to the path mywebdev/api/requests/search-all.http
If you are so kind as to help me or give me information, I would appreciate it. Thank you so much.
@ssddanbrown commented on GitHub (Mar 8, 2024):
@JoseZamora24 I'm not sure where you're getting that API endpoint from.
Please can you open a new fresh support issue for this? In that support issue, detail what code language you're writing this in, and I'll look to provide an example/sample when I get some time to do so.
@JoseZamora24 commented on GitHub (Mar 9, 2024):
I'm trying to make a query in axios from botpress. My idea is to do a
search for all the books or pages and I need it to show me the results of
all the books along with their corresponding IDs. I need this because I
don't know how to search for a specific book or page without having the ID.
Since I am making a chatbot with AI so that it can consult the bookstack
information and can have information on all the manuals that I have hosted
on my website.
I have tried making a query to namemyweb/api and namemyweb/api/search and
there is no way, I also tried /pages and /books and it only returned the
value of the titles but I need to be able to access the content. I also
tried namemywebdev/api/requests/search-all.http
I don't know if you can help me with this or give me any ideas. Although
being able to consult everything and being able to save the content of
everything in a variable would help me. Thank you so much.
El vie, 8 mar 2024 a las 16:29, Dan Brown @.***>)
escribió:
--
*Jose Manuel Zamora *Ibáñez
Global IT
C/ Silicio 10 Pol. Ind. Los Camachos
30369 CARTAGENA
@.*** @.***>
T.(+34) 968510200 <+34%20968%2051%2002%2000>
--
Este mensaje y cualquier fichero anexo al mismo se envían desde el sistema
de correo electrónico de Zamora Company, y se dirige exclusivamente a su
destinatario (s), y puede contener información confidencial, sometida a
secreto profesional. Si no es Ud. el destinatario indicado, queda
notificado de que su utilización, divulgación y/o copia sin autorización
están prohibidas en virtud de la legislación vigente.Si ha recibido este
mensaje por error, le rogamos que nos lo comunique inmediatamente por esta
misma vía, lo notifique al remitente y proceda a su destrucción, así como
al de cualquier documento que pudiera adjuntarse.
Los datos se han obtenido
con su consentimiento o como consecuencia de una relación jurídica previa.
Puede usted ejercitar los derechos de acceso, rectificación, cancelación y
oposición así como solicitar la limitación y portabilidad de los mismos.
Para ello puede enviar un email a @.**
@.***>. Le informamos asimismo que el responsable
de los datos es Diego Zamora, S.A. con CIF A-30602346 domicilio social en
P.I. Los Camachos, C/ Silicio, 10, 30369 Cartagena.
This message and all
of its attachments are sent from Zamora Company’s email system, and it is
addressed solely to its intended recipient and may contain confidential
information, subject to professional secrecy.If you are not the intended
recipient you are hereby notified that any use, disclosure and/or
unauthorized copying is prohibited by law. If you have received this email
in error, please notify us immediately by return email, and delete this
message, as well as any other documentation that could be attached.
The
data has been obtained with your consent or as a consequence of a previous
relationship. You can exercise your rights to access, rectify, cancel and
oppose this data, as well as ask us to limit it or challenge its
portability, by emailing @.***
@.**>. Diego Zamora S.A. is the controller (CIF
A-30602346) and his address is P.I. Los Camachos, C/ Silicio, 10, 30369
Cartagena.