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

Provide REST extensions to Nuxeo Automation

    XMLWordPrintable

    Details

      Description

      Automation is more a RPC system than a Rest binding.

      It does actually use JAXRS, but the Rest resource is the Operation it-self :

      • calling GET will give you the definition
      • calling POST will execute it

      Having a simple RESTful CRUD API would help :

      • simple testing
      • integration with Javascript MVC model

      The goal if this task is to build a CRUD RESTful API on Document and adapter.

      Here we are talking about reverting the Automation paradigm :

      • the Resource if the document and not the Operation
      • the Operation is the Http Verb and is limited to CRUD

      We could build that as an extension of the existing Automation.

      This basically means that Automation exposes 3 endpoints :

      • Operation RPC endpoint (/site/automation/${operationId})
      • Operation RPC batch endpoint (/site/automation/batch)
      • RESTFull/CRUD

      This new CRUD API should focus on CRUD on a DocumentModel or it's adapter.
      On the contrary to Operations, CRUD API can not be combined inside an AutomationChain and don't need to appear inside Studio.

      Target url pattern could be :

      • for pure CRUD : GET / PUT / POST / DELETE on
            /site/automation/nxdoc/{repo}/{uuid}©{adapter}
        
      • for execute an operation on the target doc : GET or POST on
            /site/automation/nxdoc/{repo}/{uuid}/{operation}@{adapter}
        

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 days
                4d
                Remaining:
                Remaining Estimate - 4 days
                4d
                Logged:
                Time Spent - Not Specified
                Not Specified