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

Document initialization REST endpoint

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10-HF17, 9.3
    • Component/s: Rest API
    • Release Notes Summary:
      An empty document with default values is initialized and can be used in WebUI forms
    • Release Notes Description:
      Hide

      A new web adapter allows returning an empty document model so as to get default values (and listeners impact on emptyDocumentCreated event) client side. The adapter is named @emptyWithDefault.
      It can be used as

      { /@emptyWithDefault?emptyDocType=File&emptyDocName=toto }

      or as {path/

      {docPath}

      /@emptyWithDefault},
      {id/

      {docId}

      /@emptyWithDefault?emptyDocType=File&emptyDocName=toto}

      Show
      A new web adapter allows returning an empty document model so as to get default values (and listeners impact on emptyDocumentCreated event) client side. The adapter is named @emptyWithDefault. It can be used as { /@emptyWithDefault?emptyDocType=File&emptyDocName=toto } or as {path/ {docPath} /@emptyWithDefault}, {id/ {docId} /@emptyWithDefault?emptyDocType=File&emptyDocName=toto}
    • Sprint:
      nxfit 9.3.7, nxfit 9.3.8
    • Story Points:
      8

      Description

      Since initialization of documents should take into account not only default values set at schema level but also changes done by event listeners (emptyDocumentModel) we should have an endpoint returning a fully initialized document to be used by clients when creating new documents

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 3 hours, 30 minutes
                  3d 3h 30m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.