GET api/Service/{id}
Takes the id of a service (guid in string format) and returns a Service
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Guid as a string |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Result Ok(200) and a Service if pass and a NotFound(404) if fails
Service| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| SiteId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Unit | integer |
None. |
|
| PricePerUnit | decimal number |
None. |
|
| Factor | decimal number |
None. |
|
| IsEnabled | boolean |
None. |
|
| DefaultName | string |
None. |
|
| ServiceNo | integer |
None. |
|
| ServiceEid2 | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "eee3aa62-e600-4c36-bfe9-0f33d76cbc46",
"SiteId": "04da251a-d7ee-450b-80d1-ca5669c87d82",
"Name": "sample string 3",
"Unit": 4,
"PricePerUnit": 5.1,
"Factor": 6.1,
"IsEnabled": true,
"DefaultName": "sample string 8",
"ServiceNo": 9,
"ServiceEid2": "sample string 10"
}
text/html
Sample:
{"Id":"eee3aa62-e600-4c36-bfe9-0f33d76cbc46","SiteId":"04da251a-d7ee-450b-80d1-ca5669c87d82","Name":"sample string 3","Unit":4,"PricePerUnit":5.1,"Factor":6.1,"IsEnabled":true,"DefaultName":"sample string 8","ServiceNo":9,"ServiceEid2":"sample string 10"}
application/xml, text/xml
Sample:
<Service xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models"> <DefaultName>sample string 8</DefaultName> <Factor>6.1</Factor> <Id>eee3aa62-e600-4c36-bfe9-0f33d76cbc46</Id> <IsEnabled>true</IsEnabled> <Name>sample string 3</Name> <PricePerUnit>5.1</PricePerUnit> <ServiceEid2>sample string 10</ServiceEid2> <ServiceNo>9</ServiceNo> <SiteId>04da251a-d7ee-450b-80d1-ca5669c87d82</SiteId> <Unit>4</Unit> </Service>