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

Query based on Public CM Properties

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • None
    • None

      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.

        1.
        Create Implementation Proposal Sub-task Closed josephkeenan
        2.
        Create Proof of Concept Sub-task Closed josephkeenan
        3.
        Update OpenAPI Specification for New Endpoint Sub-task Closed josephkeenan
        4.
        Implement Controller/Logic for Query Sub-task Closed josephkeenan
        5.
        Investigate CPS Path Query & Implement to Return Data Sub-task Closed josephkeenan
        6.
        Create CSIT Test with Two Attributes Sub-task Closed josephkeenan
        7.
        Manual Testing Sub-task Closed josephkeenan
        8.
        Demo Sub-task Closed josephkeenan

            josephkeenan josephkeenan
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: