Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12292

Make returned context pluggable via an URL pattern on REST API

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.3
    • Component/s: Rest API

      Description

      The extension point should contribute classes that knows how to return a HashMap<String,Object> and that is given a documentModel and a string (the name of the context to give). We need :

      • a service that expose a registry of context contributors. Contributors will react upon given headers and the contextual document.
      • to use this service in the DocumentModelWriter in order to fill the contextParam

      The goal is to be able to return additional resources within a document, if the client put a specific header in the request and have this behavior pluggable.

      A sample use case of this feature could be to have a header to return children of the document

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aescaffre Alain Escaffre
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 days, 5 hours, 4 minutes
                4d 5h 4m
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified