GET api/Service

Will retrive all Services that are configured for the company that the authorization is valid for.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ok(200) and a list of Service

Collection of Service
NameDescriptionTypeAdditional 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": "cceb432a-6bfd-4aa7-b237-56ae24af0c99",
    "SiteId": "4a1704e0-f7cd-44e8-a591-6506fddef334",
    "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": "cceb432a-6bfd-4aa7-b237-56ae24af0c99",
    "SiteId": "4a1704e0-f7cd-44e8-a591-6506fddef334",
    "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":"cceb432a-6bfd-4aa7-b237-56ae24af0c99","SiteId":"4a1704e0-f7cd-44e8-a591-6506fddef334","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":"cceb432a-6bfd-4aa7-b237-56ae24af0c99","SiteId":"4a1704e0-f7cd-44e8-a591-6506fddef334","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:
<ArrayOfService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models">
  <Service>
    <DefaultName>sample string 8</DefaultName>
    <Factor>6.1</Factor>
    <Id>cceb432a-6bfd-4aa7-b237-56ae24af0c99</Id>
    <IsEnabled>true</IsEnabled>
    <Name>sample string 3</Name>
    <PricePerUnit>5.1</PricePerUnit>
    <ServiceEid2>sample string 10</ServiceEid2>
    <ServiceNo>9</ServiceNo>
    <SiteId>4a1704e0-f7cd-44e8-a591-6506fddef334</SiteId>
    <Unit>4</Unit>
  </Service>
  <Service>
    <DefaultName>sample string 8</DefaultName>
    <Factor>6.1</Factor>
    <Id>cceb432a-6bfd-4aa7-b237-56ae24af0c99</Id>
    <IsEnabled>true</IsEnabled>
    <Name>sample string 3</Name>
    <PricePerUnit>5.1</PricePerUnit>
    <ServiceEid2>sample string 10</ServiceEid2>
    <ServiceNo>9</ServiceNo>
    <SiteId>4a1704e0-f7cd-44e8-a591-6506fddef334</SiteId>
    <Unit>4</Unit>
  </Service>
</ArrayOfService>