GET api/v2/FleetMaintenance/brand

Retourne la liste des marques avec leurs vehicules

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BrandDto
NameDescriptionTypeAdditional information
BrandId

identifiant

integer

None.

Name

Nom

string

Required

String length: inclusive between 0 and 100

Models

Liste de modele

Collection of ModelDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BrandId": 1,
    "Name": "sample string 2",
    "Models": [
      {
        "ModelId": 1,
        "Name": "sample string 2",
        "BrandId": 3,
        "BrandName": "sample string 4"
      },
      {
        "ModelId": 1,
        "Name": "sample string 2",
        "BrandId": 3,
        "BrandName": "sample string 4"
      }
    ]
  },
  {
    "BrandId": 1,
    "Name": "sample string 2",
    "Models": [
      {
        "ModelId": 1,
        "Name": "sample string 2",
        "BrandId": 3,
        "BrandName": "sample string 4"
      },
      {
        "ModelId": 1,
        "Name": "sample string 2",
        "BrandId": 3,
        "BrandName": "sample string 4"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfBrandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.FleetMaintenance">
  <BrandDto>
    <BrandId>1</BrandId>
    <Models>
      <ModelDto>
        <BrandId>3</BrandId>
        <BrandName>sample string 4</BrandName>
        <ModelId>1</ModelId>
        <Name>sample string 2</Name>
      </ModelDto>
      <ModelDto>
        <BrandId>3</BrandId>
        <BrandName>sample string 4</BrandName>
        <ModelId>1</ModelId>
        <Name>sample string 2</Name>
      </ModelDto>
    </Models>
    <Name>sample string 2</Name>
  </BrandDto>
  <BrandDto>
    <BrandId>1</BrandId>
    <Models>
      <ModelDto>
        <BrandId>3</BrandId>
        <BrandName>sample string 4</BrandName>
        <ModelId>1</ModelId>
        <Name>sample string 2</Name>
      </ModelDto>
      <ModelDto>
        <BrandId>3</BrandId>
        <BrandName>sample string 4</BrandName>
        <ModelId>1</ModelId>
        <Name>sample string 2</Name>
      </ModelDto>
    </Models>
    <Name>sample string 2</Name>
  </BrandDto>
</ArrayOfBrandDto>