Page MenuHomePhabricator

List namespaces and their pages in RESTBase
Open, LowPublic

Description

RESTBase already stores information about the namespace of a page. The next step is to provide this listing to the public via the following API endpoints:

  • /{domain}/v1/page/namespace/: lists all of the available namespaces, including aliases (if any), and perhaps canonical names as well
  • /{domain}/v1/page/namespace/{namespace}: gets info about a namespace, such as ID, name, aliases, canonical names, etc.
  • /{domain}/v1/page/namespace/{namespace}/: lists all of the pages available in storage that belong to the namespace with the given name; note that {namespace} may refer to a namespace's ID, name or alias

This should be easily-achievable. Specifically, it warrants the creation of a second table, which would store information about namespaces. Then, linking it to the table of pages titles (via the namespace property and the by_ns secondary index) should give us the list of pages in the given namespace.

Event Timeline

mobrovac created this task.Feb 14 2015, 7:59 PM
mobrovac updated the task description. (Show Details)
mobrovac raised the priority of this task from to Needs Triage.
mobrovac added a project: RESTBase.
mobrovac added a subscriber: mobrovac.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 14 2015, 7:59 PM

Is this really a blocker for the release? There is nothing I know of that really needs this functionality right now.

GWicke set Security to None.
GWicke triaged this task as Low priority.Mar 15 2015, 4:28 PM
GWicke moved this task from Backlog to later on the Services board.Jul 11 2017, 10:57 PM
GWicke edited projects, added Services (later); removed Services.