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": "65a2c977-b5b5-485d-b0c1-a6a29d6be16f",
"CompanyId": "5ff282f2-a7c8-41b6-a457-abe28c72e72c",
"Name": "sample string 3",
"FixedPrice": 4.1,
"Services": [
{
"Id": "a5ea5036-0c04-49a1-a751-3d1c6148af5d",
"SiteId": "5841f137-882a-43e8-92f8-efa32e2bfa2e",
"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": "a5ea5036-0c04-49a1-a751-3d1c6148af5d",
"SiteId": "5841f137-882a-43e8-92f8-efa32e2bfa2e",
"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": "82c8d9ca-044d-426e-b4cb-164599de277a",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
},
{
"Id": "82c8d9ca-044d-426e-b4cb-164599de277a",
"Name": "sample string 2",
"CarTypeNo": 3,
"Default": true
}
]
}
text/html
Sample:
{"Id":"65a2c977-b5b5-485d-b0c1-a6a29d6be16f","CompanyId":"5ff282f2-a7c8-41b6-a457-abe28c72e72c","Name":"sample string 3","FixedPrice":4.1,"Services":[{"Id":"a5ea5036-0c04-49a1-a751-3d1c6148af5d","SiteId":"5841f137-882a-43e8-92f8-efa32e2bfa2e","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":"a5ea5036-0c04-49a1-a751-3d1c6148af5d","SiteId":"5841f137-882a-43e8-92f8-efa32e2bfa2e","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":"82c8d9ca-044d-426e-b4cb-164599de277a","Name":"sample string 2","CarTypeNo":3,"Default":true},{"Id":"82c8d9ca-044d-426e-b4cb-164599de277a","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>82c8d9ca-044d-426e-b4cb-164599de277a</Id>
<Name>sample string 2</Name>
</CarType>
<CarType>
<CarTypeNo>3</CarTypeNo>
<Default>true</Default>
<Id>82c8d9ca-044d-426e-b4cb-164599de277a</Id>
<Name>sample string 2</Name>
</CarType>
</CarTypes>
<CompanyId>5ff282f2-a7c8-41b6-a457-abe28c72e72c</CompanyId>
<FixedPrice>4.1</FixedPrice>
<Id>65a2c977-b5b5-485d-b0c1-a6a29d6be16f</Id>
<Name>sample string 3</Name>
<Services>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>a5ea5036-0c04-49a1-a751-3d1c6148af5d</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>5841f137-882a-43e8-92f8-efa32e2bfa2e</SiteId>
<Unit>4</Unit>
</Service>
<Service>
<DefaultName>sample string 8</DefaultName>
<Factor>6.1</Factor>
<Id>a5ea5036-0c04-49a1-a751-3d1c6148af5d</Id>
<IsEnabled>true</IsEnabled>
<Name>sample string 3</Name>
<PricePerUnit>5.1</PricePerUnit>
<ServiceEid2>sample string 10</ServiceEid2>
<ServiceNo>9</ServiceNo>
<SiteId>5841f137-882a-43e8-92f8-efa32e2bfa2e</SiteId>
<Unit>4</Unit>
</Service>
</Services>
</Site>