Filtering is done on fields :
- salesForceId
- name
- street
- zip
- city
- country
Given I am
authenticated as
Admin
And
there is an Account with SalesForceID
a062000000HbAsd
And
there is a Site with salesforceId
a062000000HbZZZ
for this account
with:
- name set to Site Name
- street set to Site Street
- zip set to 00999
- city set to Berlin
- country set to DE
And
there is another Site with salesforceId
a062000000HbAAA
for this account
with:
- name set to another Site Name
- street set to another Site Street
- zip set to 001111
- city set to Warsaw
- country set to PL
When I send
/api/accounts/a062000000HbAsd/sites?_q=999
Then I should receive
HTTP/1.1 200 OK
with following body
{
"href": "/api/accounts/a062000000HbAsd/sites?_offset=0&_pagesize=16&_q=999&_orderBy=name&_order=ASC",
"offset": 0,
"total": 1,
"size": 1,
"links": [],
"items": [{
"href": "/api/accounts/a062000000HbAsd/sites/a062000000HbZZZ",
"links": [],
"data": [{
"name": "salesForceId",
"value": "a062000000HbZZZ"
}, {
"name": "name",
"value": "Site Name"
}, {
"name": "street",
"value": "Site Street"
}, {
"name": "zip",
"value": "00999"
}, {
"name": "city",
"value": "Berlin"
}, {
"name": "country",
"value": "DE"
}, {
"name": "isMobile",
"value": false
}]
}]
}