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": "73a1e0ec-688e-4e21-9b52-54c4b075dcbe",
"CompanyId": "21b7a33d-9341-427c-8fbf-94aebe884717",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "d9cc72f9-c970-4703-9259-6a6405e12bf3",
"SiteId": "69718d66-f0ef-4414-b77e-f1fbbe1f743d",
"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": "d9cc72f9-c970-4703-9259-6a6405e12bf3",
"SiteId": "69718d66-f0ef-4414-b77e-f1fbbe1f743d",
"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": "b4ff53fd-2c75-4a4e-a423-9eb96ef12a58",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "b4ff53fd-2c75-4a4e-a423-9eb96ef12a58",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
},
{
"Id": "73a1e0ec-688e-4e21-9b52-54c4b075dcbe",
"CompanyId": "21b7a33d-9341-427c-8fbf-94aebe884717",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "d9cc72f9-c970-4703-9259-6a6405e12bf3",
"SiteId": "69718d66-f0ef-4414-b77e-f1fbbe1f743d",
"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": "d9cc72f9-c970-4703-9259-6a6405e12bf3",
"SiteId": "69718d66-f0ef-4414-b77e-f1fbbe1f743d",
"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": "b4ff53fd-2c75-4a4e-a423-9eb96ef12a58",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "b4ff53fd-2c75-4a4e-a423-9eb96ef12a58",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
]
text/html
Sample:
[{"Id":"73a1e0ec-688e-4e21-9b52-54c4b075dcbe","CompanyId":"21b7a33d-9341-427c-8fbf-94aebe884717","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"d9cc72f9-c970-4703-9259-6a6405e12bf3","SiteId":"69718d66-f0ef-4414-b77e-f1fbbe1f743d","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":"d9cc72f9-c970-4703-9259-6a6405e12bf3","SiteId":"69718d66-f0ef-4414-b77e-f1fbbe1f743d","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":"b4ff53fd-2c75-4a4e-a423-9eb96ef12a58","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"b4ff53fd-2c75-4a4e-a423-9eb96ef12a58","Name":"sample string 2","CarTypeNo":3,"Default":true}]},{"Id":"73a1e0ec-688e-4e21-9b52-54c4b075dcbe","CompanyId":"21b7a33d-9341-427c-8fbf-94aebe884717","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"d9cc72f9-c970-4703-9259-6a6405e12bf3","SiteId":"69718d66-f0ef-4414-b77e-f1fbbe1f743d","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":"d9cc72f9-c970-4703-9259-6a6405e12bf3","SiteId":"69718d66-f0ef-4414-b77e-f1fbbe1f743d","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":"b4ff53fd-2c75-4a4e-a423-9eb96ef12a58","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"b4ff53fd-2c75-4a4e-a423-9eb96ef12a58","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>b4ff53fd-2c75-4a4e-a423-9eb96ef12a58</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>b4ff53fd-2c75-4a4e-a423-9eb96ef12a58</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>21b7a33d-9341-427c-8fbf-94aebe884717</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>73a1e0ec-688e-4e21-9b52-54c4b075dcbe</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>d9cc72f9-c970-4703-9259-6a6405e12bf3</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>69718d66-f0ef-4414-b77e-f1fbbe1f743d</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>d9cc72f9-c970-4703-9259-6a6405e12bf3</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>69718d66-f0ef-4414-b77e-f1fbbe1f743d</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
<Site>
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>b4ff53fd-2c75-4a4e-a423-9eb96ef12a58</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>b4ff53fd-2c75-4a4e-a423-9eb96ef12a58</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>21b7a33d-9341-427c-8fbf-94aebe884717</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>73a1e0ec-688e-4e21-9b52-54c4b075dcbe</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>d9cc72f9-c970-4703-9259-6a6405e12bf3</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>69718d66-f0ef-4414-b77e-f1fbbe1f743d</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>d9cc72f9-c970-4703-9259-6a6405e12bf3</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>69718d66-f0ef-4414-b77e-f1fbbe1f743d</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
</ArrayOfSite>