Page MenuHomePhabricator

Contributor gets page slot source
Open, Needs TriagePublic

Description

"As a Contributor, I want to get the current source for a slot, so I can edit it and update it."

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

Get the slot descriptor with source for the slot with role role of page with title title.

Request body: none

Notable request headers: none

Status codes:

  • 200: the response body is the slot
  • 401: reading this slot requires the user to be authenticated and they are not
  • 403: the user is forbidden to read this slot
  • 404: there is no page with this title or that page has no slot with this role

Notable response headers: none

Response body: JSON object, with the following properties

  • content_model: content model of the slot
  • source: source representation of the slot (the one you should edit)
  • timestamp: timestamp of the slot