-
Story
-
Resolution: Done
-
Medium
-
None
See details on page https://wiki.onap.org/display/DW/CPS-391Spike%3A+Define+and+Agree+NCMP+REST+Interface
This is to support combination #6 in the 'Datastore, Paths and Format Combinations for Read Operations' table.
expected format : application/yang-data+json
expected resource-path: NetConf compatible
Supported parameters (depending SND-C/ODL interface)
- fields
- depth (not defined in REST interface)
- config (content=all depends on datastore, use cannot change)
NCMP 'selects' correct DMI-Plugin using DMI-Registry based on CmHandle
NCMP forwards as PUT request to (correct DMI Plugin instance) and execute PUT REST request as define in example #7 and#8 detailed here: https://wiki.onap.org/display/DW/CPS-390+Spike%3A+Define+and+Agree+DMI+Plugin+REST+Interface#CPS390Spike:DefineandAgreeDMIPluginRESTInterface-DMIInventory,Model&DataSyncAPI
NCMP uses generic body:
- operation "read"
- do not set dataType
- set "additional-properties" from data in registry for that CmHandle
A/C
- REST endpoint described/implemented using Open API
- Update .rst (read-the-docs) to include a section about NCMP (in offered APIs see https://docs.onap.org/projects/onap-cps/en/latest/design.html#offered-apis)
- Can execute REST endpoint (might depend on
CPS-486) - Error handling if no DMI available for CmHandle (agree response code, internal exception) document as needed (in new section) on https://wiki.onap.org/display/DW/CPS+Exceptions+and+REST+API+HTTP+Response+Codes
- Handle Errors from SDN-C wrap in custom exception and document on https://wiki.onap.org/display/DW/CPS+Exceptions+and+REST+API+HTTP+Response+Codes
- Demo using different parameters against simulator when
CPS-486is completed too