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": "9af09980-91d0-488e-81b3-6021b7018f05",
"CompanyId": "5947834b-abf6-4371-9a87-8e655a32ad28",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "07be8464-e107-4e88-9b4d-706ff95d3201",
"SiteId": "847a6194-510f-491a-bc81-f0e82cf335ff",
"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": "07be8464-e107-4e88-9b4d-706ff95d3201",
"SiteId": "847a6194-510f-491a-bc81-f0e82cf335ff",
"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": "ebd2207f-b44c-4efd-bd69-f5de1ec9f73e",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "ebd2207f-b44c-4efd-bd69-f5de1ec9f73e",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
},
{
"Id": "9af09980-91d0-488e-81b3-6021b7018f05",
"CompanyId": "5947834b-abf6-4371-9a87-8e655a32ad28",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "07be8464-e107-4e88-9b4d-706ff95d3201",
"SiteId": "847a6194-510f-491a-bc81-f0e82cf335ff",
"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": "07be8464-e107-4e88-9b4d-706ff95d3201",
"SiteId": "847a6194-510f-491a-bc81-f0e82cf335ff",
"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": "ebd2207f-b44c-4efd-bd69-f5de1ec9f73e",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "ebd2207f-b44c-4efd-bd69-f5de1ec9f73e",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
]
text/html
Sample:
[{"Id":"9af09980-91d0-488e-81b3-6021b7018f05","CompanyId":"5947834b-abf6-4371-9a87-8e655a32ad28","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"07be8464-e107-4e88-9b4d-706ff95d3201","SiteId":"847a6194-510f-491a-bc81-f0e82cf335ff","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":"07be8464-e107-4e88-9b4d-706ff95d3201","SiteId":"847a6194-510f-491a-bc81-f0e82cf335ff","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":"ebd2207f-b44c-4efd-bd69-f5de1ec9f73e","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"ebd2207f-b44c-4efd-bd69-f5de1ec9f73e","Name":"sample string 2","CarTypeNo":3,"Default":true}]},{"Id":"9af09980-91d0-488e-81b3-6021b7018f05","CompanyId":"5947834b-abf6-4371-9a87-8e655a32ad28","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"07be8464-e107-4e88-9b4d-706ff95d3201","SiteId":"847a6194-510f-491a-bc81-f0e82cf335ff","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":"07be8464-e107-4e88-9b4d-706ff95d3201","SiteId":"847a6194-510f-491a-bc81-f0e82cf335ff","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":"ebd2207f-b44c-4efd-bd69-f5de1ec9f73e","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"ebd2207f-b44c-4efd-bd69-f5de1ec9f73e","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>ebd2207f-b44c-4efd-bd69-f5de1ec9f73e</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>ebd2207f-b44c-4efd-bd69-f5de1ec9f73e</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>5947834b-abf6-4371-9a87-8e655a32ad28</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>9af09980-91d0-488e-81b3-6021b7018f05</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>07be8464-e107-4e88-9b4d-706ff95d3201</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>847a6194-510f-491a-bc81-f0e82cf335ff</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>07be8464-e107-4e88-9b4d-706ff95d3201</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>847a6194-510f-491a-bc81-f0e82cf335ff</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
<Site>
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>ebd2207f-b44c-4efd-bd69-f5de1ec9f73e</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>ebd2207f-b44c-4efd-bd69-f5de1ec9f73e</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>5947834b-abf6-4371-9a87-8e655a32ad28</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>9af09980-91d0-488e-81b3-6021b7018f05</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>07be8464-e107-4e88-9b4d-706ff95d3201</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>847a6194-510f-491a-bc81-f0e82cf335ff</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>07be8464-e107-4e88-9b4d-706ff95d3201</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>847a6194-510f-491a-bc81-f0e82cf335ff</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>
</ArrayOfSite>