GET api/Site
Returns a list of sites that belong to the company that the authorization is valid for.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Sites that belongs to the current company
Collection of Site| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| FixedPrice | decimal number |
None. |
|
| Services | Collection of Service |
None. |
|
| CarTypes | Collection of CarType |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "29cc9fd5-db18-4d70-bc7d-ee96431fd88c",
"CompanyId": "9bcd2fa5-9f16-4439-8f00-fd51758685ec",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "e5262565-f788-48b6-8756-5ab2b2c91786",
"SiteId": "2c711b9a-ae3e-4de5-b5a7-10cd34004801",
"Name": "sample string 3",
"Unit": 4,
"PricePerUnit": 5.1,
"Factor": 6.1,
"IsEnabled": true,
"DefaultName": "sample string 8",
"ServiceNo": 9,
"ServiceEid2": "sample string 10"
},
{
"Id": "e5262565-f788-48b6-8756-5ab2b2c91786",
"SiteId": "2c711b9a-ae3e-4de5-b5a7-10cd34004801",
"Name": "sample string 3",
"Unit": 4,
"PricePerUnit": 5.1,
"Factor": 6.1,
"IsEnabled": true,
"DefaultName": "sample string 8",
"ServiceNo": 9,
"ServiceEid2": "sample string 10"
}
],
"CarTypes": [
{
"Id": "9fdba407-c226-4119-b51d-2123c0e48ec8",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "9fdba407-c226-4119-b51d-2123c0e48ec8",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
},
{
"Id": "29cc9fd5-db18-4d70-bc7d-ee96431fd88c",
"CompanyId": "9bcd2fa5-9f16-4439-8f00-fd51758685ec",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "e5262565-f788-48b6-8756-5ab2b2c91786",
"SiteId": "2c711b9a-ae3e-4de5-b5a7-10cd34004801",
"Name": "sample string 3",
"Unit": 4,
"PricePerUnit": 5.1,
"Factor": 6.1,
"IsEnabled": true,
"DefaultName": "sample string 8",
"ServiceNo": 9,
"ServiceEid2": "sample string 10"
},
{
"Id": "e5262565-f788-48b6-8756-5ab2b2c91786",
"SiteId": "2c711b9a-ae3e-4de5-b5a7-10cd34004801",
"Name": "sample string 3",
"Unit": 4,
"PricePerUnit": 5.1,
"Factor": 6.1,
"IsEnabled": true,
"DefaultName": "sample string 8",
"ServiceNo": 9,
"ServiceEid2": "sample string 10"
}
],
"CarTypes": [
{
"Id": "9fdba407-c226-4119-b51d-2123c0e48ec8",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "9fdba407-c226-4119-b51d-2123c0e48ec8",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
]
text/html
Sample:
[{"Id":"29cc9fd5-db18-4d70-bc7d-ee96431fd88c","CompanyId":"9bcd2fa5-9f16-4439-8f00-fd51758685ec","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"e5262565-f788-48b6-8756-5ab2b2c91786","SiteId":"2c711b9a-ae3e-4de5-b5a7-10cd34004801","Name":"sample string 3","Unit":4,"PricePerUnit":5.1,"Factor":6.1,"IsEnabled":true,"DefaultName":"sample string 8","ServiceNo":9,"ServiceEid2":"sample string 10"},{"Id":"e5262565-f788-48b6-8756-5ab2b2c91786","SiteId":"2c711b9a-ae3e-4de5-b5a7-10cd34004801","Name":"sample string 3","Unit":4,"PricePerUnit":5.1,"Factor":6.1,"IsEnabled":true,"DefaultName":"sample string 8","ServiceNo":9,"ServiceEid2":"sample string 10"}],"CarTypes":[{"Id":"9fdba407-c226-4119-b51d-2123c0e48ec8","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"9fdba407-c226-4119-b51d-2123c0e48ec8","Name":"sample string 2","CarTypeNo":3,"Default":true}]},{"Id":"29cc9fd5-db18-4d70-bc7d-ee96431fd88c","CompanyId":"9bcd2fa5-9f16-4439-8f00-fd51758685ec","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"e5262565-f788-48b6-8756-5ab2b2c91786","SiteId":"2c711b9a-ae3e-4de5-b5a7-10cd34004801","Name":"sample string 3","Unit":4,"PricePerUnit":5.1,"Factor":6.1,"IsEnabled":true,"DefaultName":"sample string 8","ServiceNo":9,"ServiceEid2":"sample string 10"},{"Id":"e5262565-f788-48b6-8756-5ab2b2c91786","SiteId":"2c711b9a-ae3e-4de5-b5a7-10cd34004801","Name":"sample string 3","Unit":4,"PricePerUnit":5.1,"Factor":6.1,"IsEnabled":true,"DefaultName":"sample string 8","ServiceNo":9,"ServiceEid2":"sample string 10"}],"CarTypes":[{"Id":"9fdba407-c226-4119-b51d-2123c0e48ec8","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"9fdba407-c226-4119-b51d-2123c0e48ec8","Name":"sample string 2","CarTypeNo":3,"Default":true}]}]
application/xml, text/xml
Sample:
<ArrayOfSite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models">
<Site>
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>9fdba407-c226-4119-b51d-2123c0e48ec8</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>9fdba407-c226-4119-b51d-2123c0e48ec8</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>9bcd2fa5-9f16-4439-8f00-fd51758685ec</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>29cc9fd5-db18-4d70-bc7d-ee96431fd88c</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>e5262565-f788-48b6-8756-5ab2b2c91786</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>2c711b9a-ae3e-4de5-b5a7-10cd34004801</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>e5262565-f788-48b6-8756-5ab2b2c91786</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>2c711b9a-ae3e-4de5-b5a7-10cd34004801</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
<Site>
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>9fdba407-c226-4119-b51d-2123c0e48ec8</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>9fdba407-c226-4119-b51d-2123c0e48ec8</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>9bcd2fa5-9f16-4439-8f00-fd51758685ec</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>29cc9fd5-db18-4d70-bc7d-ee96431fd88c</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>e5262565-f788-48b6-8756-5ab2b2c91786</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>2c711b9a-ae3e-4de5-b5a7-10cd34004801</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>e5262565-f788-48b6-8756-5ab2b2c91786</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>2c711b9a-ae3e-4de5-b5a7-10cd34004801</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
</ArrayOfSite>