Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Manual Testing




#ScenarioScreenshot

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"
    ]
}




Future Example (Out-of-scope)

...