Page MenuHomePhabricator

Curator reads a binary revision slot
Open, Needs TriagePublic

Description

"As a Curator, I want to read the data of a binary revision slot, so I can see the content of the in my viewer."

This is for getting revision slots with binary content.

GET /revision/{id}/slot/{role}/data

Get the data for a binary slot.

Request body: none

Notable request headers:

  • Accept: for content negotiation

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 revision with this ID or that revision has no slot with this role

Notable response headers:

  • Content-type: Media type of the slot

Response body: Binary stream of the page slot content