Correct add-cluster metadata form field syntax 98/110598/1
authorIgor D.C <igor.duarte.cardoso@intel.com>
Sun, 26 Jul 2020 05:30:08 +0000 (05:30 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Sun, 26 Jul 2020 05:32:30 +0000 (05:32 +0000)
Currently, the "metadata" form field expects JSON with the
top-level dictionary "metadata", and then the actual data inside.

The Postman collection doesn't provide that top-level dict which
results in a failed API call when using the Postman request as is.

Issue-ID: MULTICLOUD-1143
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
Change-Id: I5f0c4b699eb38f7e133e9d3d55eb2a0eda890601

docs/EMCO.postman_collection.json

index 0dad51e..aebd0eb 100644 (file)
                                                                                        "formdata": [
                                                                                                {
                                                                                                        "key": "metadata",
-                                                                                                       "value": "{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}",
+                                                                                                       "value": "{\"metadata\":{\"name\":\"<string>\",\"description\":\"<string>\",\"userData1\":\"<string>\",\"userData2\":\"<string>\"}}",
                                                                                                        "type": "text"
                                                                                                },
                                                                                                {
                }
        ],
        "protocolProfileBehavior": {}
-}
\ No newline at end of file
+}