We are developing a new webapp like a forum for our company network. Webapp have a search tab which provides results from our new forum. Now we are planning to integrate wiki(confluence) search result with our web app search. So, How can we integrate wiki search result with our webapp results. Is there is any plugins or Api for doing this task.
Check out the REST API. There are methods for hooking into Confluence search.
https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API
Here are some examples. There are even some for searching content.
https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API+Examples#ConfluenceRESTAPIExamples-FindingContent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Davin,
It looks like (at least with Confluence 5.5.2) that the closest API endpoint I could find on the REST documentation page https://docs.atlassian.com/atlassian-confluence/REST/latest/for search usage, "http://example.com/rest/api/content?title=something&type=page", will only return pages with the exact case sensitive title 'something'. This is definitely not useful for API searching from another webapp.
The now Deprecated REST API Prototype does appear to have a search capability (http://example.com/rest/prototype/1/search?query=something&type=page), but since it is a now deprecated API (and only a Prototype to begin with) it probably isn't a solution to use in any production capacity.
I think I may spin this off into a separate question here on Atlassian Answers since I am having this issue as well (I'll link it here if I do).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't already have it you should get the REST API Browser for your Confluence install. If you do a search in the browser for "search" you will see this entry "searchv3/1.0/search". I believe this is what you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has your question been answered?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We looked into the "searchv3/1.0/search" endpoint, but were hesitant to rely on it since it is marked as a 'Private' API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
According to https://developer.atlassian.com/static/connect/docs/scopes/confluence-rest-scopes.html:
As opposed to public APIs, private APIs are not following the principles described in the REST API Policy. While we strive to keep private APIs backward-compatible, we cannot guarantee compatibility. Private APIs can also be replaced by new public APIs and may become deprecated over time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My uderstanding is that private APIs are simply ones that require authentication, which since it is getting content from your system I would think would be a good thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know. I stand corrected. I guess I just never questioned what I thought it meant.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.