GET or POST /search
requests
GET
Use get_search.py
to test GET requests with /search
. This script saves results and match count to a file.
This example command uses get_search.py
to search DocTestCo
for all records with a positive client emotion value.
python get_search.py example.company.com $token DocTestCo '&client_emotion=positive'
get_search.py
saves output to a file like the next example.
Searching folders under DocTestCo (Token: $token)
URL is http://example.company.com/search/DocTestCo/DocTestCo-DocTesting/Test01?token=$token&client_emotion=positive
Writing Matching JSON for 4 matches to DocTestCo-DocTestCo-DocTesting-Test01-log.json
POST
Use post_search.py
to test POST requests with /search
. This script saves results and match count to a file.
This example command uses post_search.py
to search DocTestCo
for all records that match the search terms defined in params.json
.
python post_search.py example.company.com $token DocTestCo params.json
post_search.py
saves output to a file like the next example.
Searching folders under DocTestCo (Token: $token)
URL is http://example.company.com/search/DocTestCo/DocTestCo-DocTesting/Test01?token=$token
Writing Matching JSON for 4 matches to DocTestCo-DocTestCo-DocTesting-Test01-search.json