aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-08-29 17:44:26 +0000
committerGerrit Code Review <gerrit@onap.org>2022-08-29 17:44:26 +0000
commit1b75c1308399067a7161c3f9f75cbaa854f874a7 (patch)
treeefead0e2d0511d96cd09c6567340dcb26272c06b
parent91d66108379d7cd397aedc30da4801d20643ee68 (diff)
parent291d906a6ed802f6cfb0d905691361d227a78c45 (diff)
Merge "Update CM Handle Query RTD with Casing Convention"
-rw-r--r--docs/ncmp-cmhandle-querying.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ncmp-cmhandle-querying.rst b/docs/ncmp-cmhandle-querying.rst
index 5655d6c4a..0145c11b1 100644
--- a/docs/ncmp-cmhandle-querying.rst
+++ b/docs/ncmp-cmhandle-querying.rst
@@ -36,6 +36,11 @@ Currently this endpoint allows three criteria to be query on:
Not all request body combinations have been validated and as such request bodies which do not conform to the structure as documented here can produce results in which all CM Handles are returned.
+Casing conventions: 'camelCasing' and 'kebab-casing'
+--------------------------------------------------
+.. note::
+ By convention REST JSON return bodies use 'camelCasing'. By convention field names in yang modelled data use 'kebab-casing'. Therefore some inconsistencies can be seen in the JSON use in CPS REST interfaces. For CM Handle related endpoints we return data in 'camelCasing'. But for *cmHandleWithCpsPath*, the query is accessing yang modelled field names and as such needs to use 'kebab-casing'. Therefore the dmi-registry field names should be referenced when using the *cmHandleWithCpsPath* condition: :doc:`modeling`
+
Request Body example using all available query criteria. This query would return all CM Handles which have the specified modules my-module-(1-3), have the specified properties of Color yellow, Shape circle, Size small and are in a sync state of ADVISED:
.. code-block:: json