GET api/siteapi/sitebycustomer/{customerId}?active={active}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

globally unique identifier

Required

active

boolean

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SiteViewModel
NameDescriptionTypeAdditional information
active

boolean

None.

address

string

String length: inclusive between 0 and 100

site_analysis_count

integer

None.

city

string

String length: inclusive between 0 and 100

country

string

String length: inclusive between 0 and 100

customer_id

globally unique identifier

Required

DB_ip

string

String length: inclusive between 0 and 50

DB_name

string

String length: inclusive between 0 and 80

DB_password

string

String length: inclusive between 0 and 80

DB_user

string

String length: inclusive between 0 and 80

delay_between_scans

integer

Required

id

globally unique identifier

None.

ph_max

integer

None.

ph_min

integer

None.

name

string

None.

number

integer

None.

selected_sticker_id

globally unique identifier

None.

wash_temp

integer

None.

wash_temp_duration

integer

None.

witness_maxwash

integer

None.

zip_code

string

String length: inclusive between 0 and 20

Response Formats

application/json, text/json

Sample:
[
  {
    "active": true,
    "address": "sample string 1",
    "site_analysis_count": 1,
    "city": "sample string 2",
    "country": "sample string 3",
    "customer_id": "e99f8926-4f0c-4320-a258-4b90db3a5507",
    "dB_ip": "sample string 5",
    "dB_name": "sample string 6",
    "dB_password": "sample string 7",
    "dB_user": "sample string 8",
    "delay_between_scans": 9,
    "id": "6ea996f9-c271-42d9-b775-d331808af521",
    "ph_max": 1,
    "ph_min": 1,
    "name": "sample string 11",
    "number": 1,
    "selected_sticker_id": "83e78d99-e8c7-40ac-bbe9-fb970f974984",
    "wash_temp": 1,
    "wash_temp_duration": 1,
    "witness_maxwash": 1,
    "zip_code": "sample string 12"
  },
  {
    "active": true,
    "address": "sample string 1",
    "site_analysis_count": 1,
    "city": "sample string 2",
    "country": "sample string 3",
    "customer_id": "e99f8926-4f0c-4320-a258-4b90db3a5507",
    "dB_ip": "sample string 5",
    "dB_name": "sample string 6",
    "dB_password": "sample string 7",
    "dB_user": "sample string 8",
    "delay_between_scans": 9,
    "id": "6ea996f9-c271-42d9-b775-d331808af521",
    "ph_max": 1,
    "ph_min": 1,
    "name": "sample string 11",
    "number": 1,
    "selected_sticker_id": "83e78d99-e8c7-40ac-bbe9-fb970f974984",
    "wash_temp": 1,
    "wash_temp_duration": 1,
    "witness_maxwash": 1,
    "zip_code": "sample string 12"
  }
]

application/xml, text/xml

Sample:
<ArrayOfsite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <site>
    <DB_ip>sample string 5</DB_ip>
    <DB_name>sample string 6</DB_name>
    <DB_password>sample string 7</DB_password>
    <DB_user>sample string 8</DB_user>
    <active>true</active>
    <address>sample string 1</address>
    <city>sample string 2</city>
    <country>sample string 3</country>
    <customer_id>e99f8926-4f0c-4320-a258-4b90db3a5507</customer_id>
    <delay_between_scans>9</delay_between_scans>
    <id>6ea996f9-c271-42d9-b775-d331808af521</id>
    <name>sample string 11</name>
    <number>1</number>
    <ph_max>1</ph_max>
    <ph_min>1</ph_min>
    <selected_sticker_id>83e78d99-e8c7-40ac-bbe9-fb970f974984</selected_sticker_id>
    <site_analysis_count>1</site_analysis_count>
    <wash_temp>1</wash_temp>
    <wash_temp_duration>1</wash_temp_duration>
    <witness_maxwash>1</witness_maxwash>
    <zip_code>sample string 12</zip_code>
  </site>
  <site>
    <DB_ip>sample string 5</DB_ip>
    <DB_name>sample string 6</DB_name>
    <DB_password>sample string 7</DB_password>
    <DB_user>sample string 8</DB_user>
    <active>true</active>
    <address>sample string 1</address>
    <city>sample string 2</city>
    <country>sample string 3</country>
    <customer_id>e99f8926-4f0c-4320-a258-4b90db3a5507</customer_id>
    <delay_between_scans>9</delay_between_scans>
    <id>6ea996f9-c271-42d9-b775-d331808af521</id>
    <name>sample string 11</name>
    <number>1</number>
    <ph_max>1</ph_max>
    <ph_min>1</ph_min>
    <selected_sticker_id>83e78d99-e8c7-40ac-bbe9-fb970f974984</selected_sticker_id>
    <site_analysis_count>1</site_analysis_count>
    <wash_temp>1</wash_temp>
    <wash_temp_duration>1</wash_temp_duration>
    <witness_maxwash>1</witness_maxwash>
    <zip_code>sample string 12</zip_code>
  </site>
</ArrayOfsite>