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

VSE: Upload modules (a model file) to a (new) dataspace

XMLWordPrintable

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

       

      This use story will update the existing solution for storing model/modules:

      API Structure : https://wiki.onap.org/display/DW/CCSDK-2870+DP%3A+CPS+REST+API+Documentation+-+PROPOSAL

      Acceptance Criteria

      1. Change OpenAPI to use Spring framework
      2. Use the agreed URL structure: POST /dataspaces/{dataspace-id}/modules
        See https://wiki.onap.org/display/DW/CCSDK-2870+DP%3A+CPS+REST+API+Documentation+-+PROPOSAL
      3. If the provided set of Yang modules contains any yang error the request will be rejected (HTTP Error 400)
      4. if a new dataspace-id is provided a record will be created in the dataspace table
      5. if a new namespace&revision is provided a new record will be created in the modules tale. 
      6. Many modules can be added in one request
      7. If any modules already exist the whole operation will be rejected and an HTP 400 error code will be returned.
      8. we can run a SQL query to show all modules for a given dataspace (using SQL CLI tool)

            puthuparambil.aditya puthuparambil.aditya
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: