# | Scenario | Screenshot | cURL Command | REST |
---|
1 | Both properties match (CM Handles Returned that Match) | Image Added
| 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) | Image Added
| 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": "" } }' |
{ "publicCmHandleProperties": { "Contact": "" } } |
3 | No properties given - all cm handles returned (that contain public properties) | Image Added
| 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": { "": "" } } |
4 | Return 400 (BAD_REQUEST) | Image Added
| 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" ] } |