"As a Reader, I want to get a list of pages that have a particular title prefix, so that I can find a specific page quickly."
GET /search/title?q={search term}
Searches for pages in the main namespace by a text search term. Returns pages that match the term as a prefix in the title. Pages that are unreadable by the current user are not returned. This is the endpoint most useful for type-ahead search.
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"