Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1672

Provide a method to retrieve a node by it's identifer in the REST service

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 3.0.0.CR2
    • 3.0.0.CR1
    • Server
    • None

    Description

      As of 3.0.0.CR1, the REST service returns a node's identifier in the "id" element of the Json document. However, there is no way to retrieve a node by it's ID. (See also: MODE-1671).

      Add a method that allows retrieval of a node by it's identifier. Perhaps something like:

      GET http://localhost:8080/modeshape-rest/sample/default/node/06513e25-db17-4a43-84ca-0c35f8624ab7
      
      {
         "self": "http://localhost:8080/modeshape-rest/sample/default/items/sector",
         "up": "http://localhost:8080/modeshape-rest/sample/default/items/",
         "id": "06513e25-db17-4a43-84ca-0c35f8624ab7",
         "jcr:primaryType": "nt:unstructured",
         "prop1": "val1",
         "children": {...}
      }
      
      

      Attachments

        Activity

          People

            rhauch Randall Hauch (Inactive)
            jonathandfields_jira Jonathan Fields (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: