GET api/rentalModelsSimple

Gets a list of all rental models.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A collection of RentalModelSimpleViewModel objects.

Collection of Cyberlogic.eTourism.Domain.ViewModels.Rentals.RentalModelSimpleViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Group

string

None.

GroupId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Group": "sample string 3",
    "GroupId": 4
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Group": "sample string 3",
    "GroupId": 4
  }
]

text/html

Sample:
[{"Id":1,"Name":"sample string 2","Group":"sample string 3","GroupId":4},{"Id":1,"Name":"sample string 2","Group":"sample string 3","GroupId":4}]

application/xml, text/xml

Sample:
<ArrayOfRentalModelSimpleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Rentals">
  <RentalModelSimpleViewModel>
    <Group>sample string 3</Group>
    <GroupId>4</GroupId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </RentalModelSimpleViewModel>
  <RentalModelSimpleViewModel>
    <Group>sample string 3</Group>
    <GroupId>4</GroupId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </RentalModelSimpleViewModel>
</ArrayOfRentalModelSimpleViewModel>