Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1725

Model Type and Data Dictionary APIs import format does not match to CDS startup load format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • El Alto Release, Frankfurt Release
    • None
    • None

      When using Data Type (/api/v1/model-type) or Data Dictionary (/api/v1/dictionary) APIs to load datatypes of dictionary items to CDS e.g. by using CBA helper script documented here:

      https://wiki.onap.org/display/DW/User+Guide#Designtime--1824489883

      Firstly the format of json file needed in POST is not documented

      Secondly using default DT an DD files CDS itself uses at startup from here:

      DT: https://github.com/onap/ccsdk-cds/tree/elalto/components/model-catalog/definition-type/starter-type/data_type

      DD: https://github.com/onap/ccsdk-cds/tree/elalto/components/model-catalog/resource-dictionary/starter-dictionary

      fails because the files content is not complete for the APIs! CDS startup load code does amendment for the format before saving it in here:

      DT: https://github.com/onap/ccsdk-cds/blob/elalto/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/load/ModelTypeLoadService.kt#L140

      DD: https://github.com/onap/ccsdk-cds/blob/elalto/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/load/ResourceDictionaryLoadService.kt#L100

       

      Format of DT/DD files should be same for CDS initial startup as for the API usage and it should be documented. 

       

       

            Unassigned Unassigned
            silvius silvius
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: