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": "d8cf5042-a891-427d-8c8a-ea975e123ed3",
"CompanyId": "b911354a-fa5b-4985-a8ad-656b8f247ad7",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf",
"SiteId": "23b5cdbe-954c-4382-a4b8-b4ced48ec4a3",
"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": "ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf",
"SiteId": "23b5cdbe-954c-4382-a4b8-b4ced48ec4a3",
"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": "e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
},
{
"Id": "d8cf5042-a891-427d-8c8a-ea975e123ed3",
"CompanyId": "b911354a-fa5b-4985-a8ad-656b8f247ad7",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf",
"SiteId": "23b5cdbe-954c-4382-a4b8-b4ced48ec4a3",
"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": "ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf",
"SiteId": "23b5cdbe-954c-4382-a4b8-b4ced48ec4a3",
"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": "e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
]
text/html
Sample:
[{"Id":"d8cf5042-a891-427d-8c8a-ea975e123ed3","CompanyId":"b911354a-fa5b-4985-a8ad-656b8f247ad7","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf","SiteId":"23b5cdbe-954c-4382-a4b8-b4ced48ec4a3","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":"ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf","SiteId":"23b5cdbe-954c-4382-a4b8-b4ced48ec4a3","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":"e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f","Name":"sample string 2","CarTypeNo":3,"Default":true}]},{"Id":"d8cf5042-a891-427d-8c8a-ea975e123ed3","CompanyId":"b911354a-fa5b-4985-a8ad-656b8f247ad7","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf","SiteId":"23b5cdbe-954c-4382-a4b8-b4ced48ec4a3","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":"ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf","SiteId":"23b5cdbe-954c-4382-a4b8-b4ced48ec4a3","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":"e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f","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>e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>b911354a-fa5b-4985-a8ad-656b8f247ad7</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>d8cf5042-a891-427d-8c8a-ea975e123ed3</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>23b5cdbe-954c-4382-a4b8-b4ced48ec4a3</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>23b5cdbe-954c-4382-a4b8-b4ced48ec4a3</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
<Site>
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>e78ce2c9-f8a1-4a3b-a9d1-bb4e3de89a5f</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>b911354a-fa5b-4985-a8ad-656b8f247ad7</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>d8cf5042-a891-427d-8c8a-ea975e123ed3</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>23b5cdbe-954c-4382-a4b8-b4ced48ec4a3</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ad22e2e9-b316-4eb0-8ef3-36cdb4f28dcf</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>23b5cdbe-954c-4382-a4b8-b4ced48ec4a3</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
</ArrayOfSite>