Extend /get method to get text data

Issue #31 resolved
Alan Noble created an issue

The Media ID (MID) already encodes whether or not the requested data is MTS media (datastore type MtsMedia) or text (datastore type Text) and can therefore be used to determine what data type to fetch.

The out param could be used to perform transcoding of the requested text, but by default, the text should be returned “as is” with the MIME type set to Text.Type.

This feature is a prerequisite to rendering log data (which is JSON).

Comments (6)

  1. Alan Noble reporter

    For example, JSON text might be colour-coded or might be transcoded at plain text or as HTML text for rendering. Initially we can return the JSON “as is” and let the browser handle the rendering.

  2. Log in to comment