GET api/Site/{id}
Takes the id for a specific site (guid in string format) and returns a Site.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Site id, Guid as a string |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Ok(200) and a Site model or a list of Site models or NotFound(404) if not found
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": "e9ad3a2a-e31b-4527-8ea7-3736d571eb2b",
"CompanyId": "48763311-47bd-4d71-973a-cb6fc0740d44",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "88295cc1-ac02-4d60-8029-bf63848ba3a1",
"SiteId": "42959034-f0e8-43fe-9dd1-4f79b04c9018",
"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": "88295cc1-ac02-4d60-8029-bf63848ba3a1",
"SiteId": "42959034-f0e8-43fe-9dd1-4f79b04c9018",
"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": "88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
text/html
Sample:
{"Id":"e9ad3a2a-e31b-4527-8ea7-3736d571eb2b","CompanyId":"48763311-47bd-4d71-973a-cb6fc0740d44","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"88295cc1-ac02-4d60-8029-bf63848ba3a1","SiteId":"42959034-f0e8-43fe-9dd1-4f79b04c9018","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":"88295cc1-ac02-4d60-8029-bf63848ba3a1","SiteId":"42959034-f0e8-43fe-9dd1-4f79b04c9018","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":"88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa","Name":"sample string 2","CarTypeNo":3,"Default":true}]}
application/xml, text/xml
Sample:
<Site xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models">
<CarTypes>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>88bad7aa-1d77-43d0-9033-c6bcf0e6f0fa</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>48763311-47bd-4d71-973a-cb6fc0740d44</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>e9ad3a2a-e31b-4527-8ea7-3736d571eb2b</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>88295cc1-ac02-4d60-8029-bf63848ba3a1</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>42959034-f0e8-43fe-9dd1-4f79b04c9018</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>88295cc1-ac02-4d60-8029-bf63848ba3a1</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>42959034-f0e8-43fe-9dd1-4f79b04c9018</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>