-
Story
-
Resolution: Done
-
Medium
-
None
URI *: {ncmp-root} /ncmp-dmi/v1/ch/
Register a DMI-Plugin with one or more handles.
The DMI Plugin needs to call the method defined in NCMP for this
https://wiki.onap.org/display/DW/CPS-390+Spike%3A+Define+and+Agree+DMI+Plugin+REST+Interface
- This story only applies to registration
*Method *: POST
*URI *:
/ncmp-dmi/v1/ch/
{{ *Header *:}}
{{ Content-Type: application/json}}
{ Request Body : {}}
{
{ "cmhandle" : "cmhandle1", .. , "cmhandle" : "cmhandle1" ] }}}
}
From DmiServiceImpl make a https call to ncmp rest interface that is being created in CPS-442
ensure the
- this method is called the FIRST time any cmHandle is added/discovered
- REST communication between DMI-Plugin and NCMP can be just HTTP (not secure) as they are in the same cluster
-{ "dmi-plugin" :
{{
{ <service-name> }}}
"cmHandles": [ <cmHandle1>, ... , <cmHandleN> ]
{{ }}}
service-name should be unique, can be hardcode as per above example maybe get tfinnerty to approve this part through review)