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": "064636b5-0079-427d-b72e-b9017062df14",
"CompanyId": "2c66c9f3-8e31-4e33-a34f-969babaf5cd9",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "ea7dce36-f880-4efc-a72c-4b43d35a1c6b",
"SiteId": "7fc61636-6fce-4acd-96ba-be64da61389a",
"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": "ea7dce36-f880-4efc-a72c-4b43d35a1c6b",
"SiteId": "7fc61636-6fce-4acd-96ba-be64da61389a",
"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": "cd4156e5-312d-47a1-8701-f2fbba25309a",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "cd4156e5-312d-47a1-8701-f2fbba25309a",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
text/html
Sample:
{"Id":"064636b5-0079-427d-b72e-b9017062df14","CompanyId":"2c66c9f3-8e31-4e33-a34f-969babaf5cd9","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"ea7dce36-f880-4efc-a72c-4b43d35a1c6b","SiteId":"7fc61636-6fce-4acd-96ba-be64da61389a","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":"ea7dce36-f880-4efc-a72c-4b43d35a1c6b","SiteId":"7fc61636-6fce-4acd-96ba-be64da61389a","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":"cd4156e5-312d-47a1-8701-f2fbba25309a","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"cd4156e5-312d-47a1-8701-f2fbba25309a","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>cd4156e5-312d-47a1-8701-f2fbba25309a</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>cd4156e5-312d-47a1-8701-f2fbba25309a</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>2c66c9f3-8e31-4e33-a34f-969babaf5cd9</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>064636b5-0079-427d-b72e-b9017062df14</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ea7dce36-f880-4efc-a72c-4b43d35a1c6b</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>7fc61636-6fce-4acd-96ba-be64da61389a</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>ea7dce36-f880-4efc-a72c-4b43d35a1c6b</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>7fc61636-6fce-4acd-96ba-be64da61389a</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>