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

NCMP: Update existing Batch endpoint (Moving url param into rest body)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Montreal Release
    • None
    • NCMP

      Proposed :

      POST http://localhost:8080/ncmp/v1/batch&topic=my-topic-name

      {
                    operations: [
                                   {
                                                 operation: read,
                                                 datastore: "...",
                                                 options: "...",
                                                 resourceIdentifier: "...",
                                                 cmhandleIds: [4, 6]
                                   },
                                   {
                                                 operation: read,
                                                 datastore: "...",
                                                 options: "...",
                                                 resourceIdentifier: "...",
                                                 cmhandleIds: [1, 2, 3]
                                   }
                    ]
      }
       
      

      NCMP Request

      {
        { options: x=1
          [1,2,3]
        }
        { options: x=1
          [4,5]
        }
      }
      

      DMI1 -> 1-4

      DMI2 -> 5-9

      DMI3 -> 10-15

       

      DMI1

      {
        { opeartion : read,
          datastore: ..,
          options: x=1
          [Object(1,color=green), Object(2,color=green), Object(3,color=blue)]
        }
        { opeartion : read,
          datastore: ..,
          options: x=1,
          resourceIdentifier: "...",
          [Object(4,color=green)]
        }
      }
      

      DMI2

      {
        { opeartion : read,
          datastore: ..,
          options: x=1,
           resourceIdentifier: ..,
           [Object(5,size=small)]
        }
      }
      

       

      Note:

      1. Update components.yaml (Impl. new endpoint)
      2. Update ncmp.yml with request / response example
      3. Update openapi.yml
      4. Create a parallel dmi service request

      A/C :

      1. Open API doc should be updated (with updated request body and url)
      2. Open API doc should be updated (including RTD)
      3. Demo can be done after CPS-1636
        • cm handles are correctly forwarded to it's coresponding dmi service.

       

      Not in scope:

      1. Reject a bulk request that have write operation (bad request 400)
      2. Error handling 

            sourabh_sourabh Sourabh Sourabh
            sourabh_sourabh Sourabh Sourabh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: