# | Scenario | Screenshot | cURL Command | REST |
---|
1 | Both properties match (CM Handles Returned that Match) ![(tick)](/s/z10khv/8804/xgjkrn/_/images/icons/emoticons/check.svg) | | curl --location --request POST 'http://localhost:8883/ncmp/v1/data/ch/searches' \ --header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \ --header 'Content-Type: application/json' \ --header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \ --data-raw '{ "publicCmHandleProperties": { "Contact": "newemailforstore@bookstore.com" } }' |
{ "publicCmHandleProperties": { "Contact": "newemailforstore@bookstore.com" } } |
2 | One property doesn't match (Nothing Returned) ![(tick)](/s/z10khv/8804/xgjkrn/_/images/icons/emoticons/check.svg) | | curl --location --request POST 'http://localhost:8883/ncmp/v1/data/ch/searches' \ --header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \ --header 'Content-Type: application/json' \ --header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \ --data-raw '{ "publicCmHandleProperties": { "Contact": "something else" } }' |
{ "publicCmHandleProperties": { "Contact": "something else" } } |
3 | unknown properties given - NO cm handles returned |
|
| "publicCmHandleProperties": { "UnknownProperty": "doesn't matter" } } |
4 | InvalidEmpty property name Return 400 (BAD_REQUEST) | | curl --location --request POST 'http://localhost:8883/ncmp/v1/data/ch/searches' \ --header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \ --header 'Content-Type: application/json' \ --header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \ --data-raw '{ "publicCmHandleProperties": { "": "" } }' |
{ "publicCmHandleProperties": { "": "doesn't matter " } } |
5 | No properties given - all cm handles returned (that contain public properties) ![(tick)](/s/z10khv/8804/xgjkrn/_/images/icons/emoticons/check.svg) |
|
|
{ "publicCmHandleProperties": { } } |
6 | Return 400 (BAD_REQUEST) ![(tick)](/s/z10khv/8804/xgjkrn/_/images/icons/emoticons/check.svg) | | curl --location --request POST 'http://localhost:8883/ncmp/v1/data/ch/searches' \ --header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \ --header 'Content-Type: application/json' \ --header 'Cookie: JSESSIONID=node0p01jwoucppe9e0t2ksksk2ns7.node0' \ --data-raw '{ "publicCmHandleProperties": [ "Contact", "newemailforstore@bookstore.com" ] }' |
{ "publicCmHandleProperties": [ "Contact", "newemailforstore@bookstore.com" ] } |
7 |
|
|
| empty value |