Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1145

REST action invocations support limited conneg to JAXB-marshalled DTOs

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.8.0
    • Fix Version/s: 1.9.0
    • Labels:
      None

      Description

      invoking any of the action/invoke resources (in the usual fashion) with an Accept header of

      "application/xml;profile=urn:org.restfulobjects:repr-types/action-result;x-ro-domain-type=todoapp.dto.module.todoitem.ToDoItemDto"

      will check that the returned object is of the specified type, and return it as XML payload.

      Otherwise will return a 406.

      If there is no Accept header or is "application/json", then retain original behaviour.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: