SAMPLE APIs for CPS :: Create dataspace :: curl --location --user cpsuser:cpsr0cks! -H "Accept: application/json" -H "Content-Type: application/json" --request POST 'http://localhost:8883/cps/api/v1/dataspaces?dataspace-name=firstdataspace' Create schemaset :: curl --location --user cpsuser:cpsr0cks! --request POST 'http://localhost:8883/cps/api/v1/dataspaces/firstdataspace/schema-sets' --form 'file=@"cps-cavsta-onap-internal.yang"' --form 'schema-set-name="first-schemaset"' Create anchor :: curl --location --user cpsuser:cpsr0cks! --request POST 'http://localhost:8883/cps/api/v1/dataspaces/firstdataspace/anchors?schema-set-name=first-schemaset&anchor-name=first-anchor' Verify dataspace, schemaset and anchor :: curl --location --user cpsuser:cpsr0cks! --request GET 'http://localhost:8883/cps/api/v1/dataspaces/firstdataspace/anchors' Create datanode :: curl --location --user cpsuser:cpsr0cks! --request POST 'http://localhost:8883/cps/api/v1/dataspaces/firstdataspace/anchors/first-anchor/nodes' \ --header 'Content-Type: application/json' \ --data-raw '{ "ran-coverage-area": { "pLMNIdList": [ { "mcc": 10, "mnc": 11, "coverage-area": [ { "coverageArea": "15", "coverageAreaTAList": [ { "nRTAC": 101, "taCellsList": [ { "cellLocalId": 15709 } ] }, { "nRTAC": 202, "taCellsList": [ { "cellLocalId": 15709 } ] }, { "nRTAC": 303, "taCellsList": [ { "cellLocalId": 15709 } ] } ] } ] } ] } }' CPS - TBDMT TEMPLATE CREATION :: curl --location --request POST 'http://localhost:8080/templates' \ --header 'Content-Type: application/json' \ --data-raw '{ "templateId": "get_ta_list", "model": "first-schemaset", "requestType": "get", "xpathTemplate": "/ran-coverage-area/pLMNIdList[@mcc='\''{{10}}'\'' and @mnc='\''{{11}}'\'']/coverage-area[@coverageArea='\''{{zone_id}}'\'']", "includeDescendants": true }' curl --location --request POST 'http://localhost:8080/execute/first-schemaset/get_ta_list' \ --header 'Content-Type: application/json' \ --data-raw '{ "inputParameters": { "zone_id":"15" } }'