GET api/loyalty2/engine/enginetypes

Provides all types of Loyalty engines.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of EngineType
NameDescriptionTypeAdditional information
Id

Id for this engine type

integer

None.

Name

Nsme of this engine type

string

None.

EngineTypeCode

This is a . We hold this as an int because our current ORM layer does not support GetAll on enums. If support for GetAll on enums is made, this should be change to the enum type.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "EngineTypeCode": 3
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "EngineTypeCode": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfEngineTypeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <EngineTypeViewModel>
    <EngineTypeCode>3</EngineTypeCode>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </EngineTypeViewModel>
  <EngineTypeViewModel>
    <EngineTypeCode>3</EngineTypeCode>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </EngineTypeViewModel>
</ArrayOfEngineTypeViewModel>