"As a Reader, I want to get a list of pages that match a search term, so that I can find pages about a topic I’m interested in."
GET /search/page?q={search term}
Searches for pages in the main namespace by a text search term. Returns pages that match the term either in their title or in their text. Pages that are unreadable by the current user are not returned.
Request headers: none
Request body: none
Status:
200 – OK
Headers: none
Body: JSON
object including a single property, "pages".
- pages: an array of pages in relevance order, as with search in the Web interface. Maximum of 50 results. Each page result includes:
- id: id of the page
- key: prefixed DB key of the page, like "Main_Page"
- title: title for display, like "Main Page"
- excerpt: excerpt that shows the search term in the text of the page, in HTML, or null if only a title match