Details
-
Story
-
Status: Closed
-
High
-
Resolution: Done
-
None
Description
See no.2 in https://wiki.onap.org/display/DW/CPS-391Spike%3A+Define+and+Agree+NCMP+REST+Interface
Request Body
{
"conditions": {
"hasAllModules": [
]
}
}
Out of scope
Cps core rest interface
Implement OR query
Sample of AND query
cm1 (m1,m2,m3)
cm2(m1,m2)
cm3(m3,m4)
m1-> cm1,cm2
m2,m3-> cm1
m2 AND m3 -> cm1
m2 OR m3 -> cm1, cm2, cm3
m2 AND m3 -> cm1
m2 or m3
m2 -> cm1, cm2
m3 -> cm1, cm3
A/C
Create an implementation proposal
Implement AND query
Create a native query in the anchor repository / Write a method that returns all module refs for a namespace - iterate over and filter based on request
Implementation Proposal
https://wiki.onap.org/display/DW/CPS-644+Get+all+cm+handles+that+support+all+modules+in+a+given+list+of+modules