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

Updating REST interface with 'TrustLevel'

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Montreal Release
    • CPS-Core, NCMP

       

      We want to query cm handles with a condition parameter of trust level.

      The trust level can be in two form:

      "trustLevel": "COMPLETE"

      "trustLevel": "NONE"

       

      Update POST[ /ncmp/v1/ch/id-searches |http://localhost:8883/swagger-ui/index.html?configUrl=%2Fv3%2Fapi-docs%2Fswagger-config&urls.primaryName=cps-ncmp#/network-cm-proxy/searchCmHandleIds] and / ncmpInventory/v1/ch/id-searches and http://localhost:8883/ncmp/v1/ch/searches

       

      Query Body: 
      "cmHandleQueryParameters":
         [
            { 
      "conditionName": "cmHandleWithTrustLevel", "conditionParameters": [ { "trustLevel": "COMPLETE" }]}
         ]
      }

      Return Body:
      [
        { 
          "cmHandle": "my-cm-handle1",     "publicCmHandleProperties": [ { "key": "Book Type" }, { "key": "Book Type" } ],     "state": { ... },
          "trustLevel" : "COMPLETE"}
      ]

       

      A/C:

      1. There are two end points will be subject to query should return cm handles as per the trust level requested.
        http://<host>:<port>/ncmp/v1/ch/id-searches
            that will return only cm handle ids.
        http://<host>:<port>/v1/ch/searches
            that will return entire cm handles as object.
      2. There should be a minimal/zero impact on performance for the endpoint.Check/Update performance tests in Nordix jobs.

      Demo

            halil.cakal Halil Cakal
            lukegleeson lukegleeson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: