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": "d3a05ba3-b91c-4efc-85be-04a2f62f8759",
"CompanyId": "c8e8d0e6-7562-4430-8a31-ba4fa4b11ce4",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "34f10213-00b0-4584-bd64-e8b67d6ad351",
"SiteId": "cdbfcb71-0adf-4e9a-b324-d47c415690f3",
"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": "34f10213-00b0-4584-bd64-e8b67d6ad351",
"SiteId": "cdbfcb71-0adf-4e9a-b324-d47c415690f3",
"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": "fd4e448e-4e95-4390-9370-b3d5dd28210c",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "fd4e448e-4e95-4390-9370-b3d5dd28210c",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
text/html
Sample:
{"Id":"d3a05ba3-b91c-4efc-85be-04a2f62f8759","CompanyId":"c8e8d0e6-7562-4430-8a31-ba4fa4b11ce4","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"34f10213-00b0-4584-bd64-e8b67d6ad351","SiteId":"cdbfcb71-0adf-4e9a-b324-d47c415690f3","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":"34f10213-00b0-4584-bd64-e8b67d6ad351","SiteId":"cdbfcb71-0adf-4e9a-b324-d47c415690f3","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":"fd4e448e-4e95-4390-9370-b3d5dd28210c","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"fd4e448e-4e95-4390-9370-b3d5dd28210c","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>fd4e448e-4e95-4390-9370-b3d5dd28210c</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>fd4e448e-4e95-4390-9370-b3d5dd28210c</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>c8e8d0e6-7562-4430-8a31-ba4fa4b11ce4</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>d3a05ba3-b91c-4efc-85be-04a2f62f8759</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>34f10213-00b0-4584-bd64-e8b67d6ad351</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>cdbfcb71-0adf-4e9a-b324-d47c415690f3</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>34f10213-00b0-4584-bd64-e8b67d6ad351</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>cdbfcb71-0adf-4e9a-b324-d47c415690f3</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>