Uploaded image for project: 'Attachments Module'
  1. Attachments Module
  2. ATT-38

AttachmentBytesResource_* to take the (complex obs) view as parameter

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Code Review (Post-Commit)
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Labels:
      None
    • Complexity:
      L

      Description

      1. Description

      AttachmentBytesResource just lets the complex obs view to default to an uncontrolled value. However generally speaking it should provide a way to specify which complex obs view is being requested.

      2. Dev Notes

      See here in AttachmentBytesResource how null is always used:

      viewHelper.getView(obs, null)
      

      For info/ref., here in AttachmentsConstants are the default "original" and "thumbnail" view names that are introduced through the Attachments module API layer.

      3. Acceptance Criteria

      As a REST API consumer I want to be able to calls such as:

      /rest/v1/attachment/{uuid}/bytes?view=complexdata.view.original
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              reagan Reagan patrick Makoba
              Reporter:
              mksd Dimitri R
              Designated Committer:
              Dimitri R
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: