Page MenuHomePhabricator

Reader reads a page slot offline
Open, MediumPublic

Description

"As a reader, I want to get a rendered representation of a page slot, so I can understand everything about the page."

GET /page/{title}/slot/{role}/with_html

Returns the HTML representation of a slot, if that's a meaningful term.

Request body: none

Notable request headers: none

Status codes:

  • 200: the body includes the slot with HTML representation
  • 400: this slot content model or role cannot be rendered as HTML
  • 401: reading this slot requires authentication and the user is unauthenticated
  • 403: the authenticated user is forbidden from reading this slot
  • 404: no such page or no such slot

Notable response headers: none

Response body: JSON, object, slot

  • id: ID of the slot
  • html: Rendered HTML for the slot

Event Timeline

eprodromou renamed this task from Reader reads a page slot to Reader reads a page slot offline.Nov 10 2019, 6:22 PM
eprodromou triaged this task as Medium priority.
eprodromou created this task.