Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-731

Query based on Public CM Properties

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • Kohn Release
    • None

    Description

      It should be able to query all cmhandles with a given set of public cmhandle properties.

       

      Interface Sketch

      POST /ncmp/v1/data/ch/searches

       

      {
        "publicCmHandleProperties" : {
                "Name-1" : "some-value",
                "Name-2" : "other-value"
         }
      }

      We want all cm-Handles where both things are true. Those properties also need to exist.
      If query body does not follow supported structure return 400. Empty query will return all cm-Handles.

      A/C:

      1. Demo - with "and" behaviour
      2. CI Test - two attributes

       
      It should be possible to search with cmhandle public properties along with other search criteria like modules like below :
      Interface Sketch of Potential Future Query

      POST /ncmp/v1/data/ch/searches

       

      {
        "publicCmHandleProperties" : {
           "publicPropertyName-1" : "publicPropertyValue-1",
           "publicPropertyName-2" : "publicPropertyValue-2"
         },
        "modules": [
          {
                 "moduleName": "", (Mandatory)
                 "revision": "" (Optional)
              }
        ]
      }

      Modules here is to demonstrate future intentions of endpoint but is out of scope for this user story.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              JosephKeenan Joseph Keenan
              ToineSiebelink Toine Siebelink
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: