POST api/Brake/UpdateBrakesCalculated

Request Information

URI Parameters

None.

Body Parameters

CarBrakesResult
NameDescriptionTypeAdditional information
ParkingBrakeEfficiency

integer

None.

ParkingBrakeLeftPower

decimal number

None.

ParkingBrakeRightPower

decimal number

None.

EfficiencyOfTheCar

integer

None.

Axles

Collection of Axle

None.

PlateNum

string

None.

VendorName

string

None.

VendorId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ParkingBrakeEfficiency": 1,
  "ParkingBrakeLeftPower": 1.1,
  "ParkingBrakeRightPower": 1.1,
  "EfficiencyOfTheCar": 1,
  "Axles": [
    {
      "AxleNum": 1,
      "DifferenceBetweenLegs": 1,
      "LeftAxlePower": 1.1,
      "RightAxlePower": 1.1,
      "LeftAxleWeight": 1,
      "RightAxleWeight": 1,
      "AxleWeight": 2
    },
    {
      "AxleNum": 1,
      "DifferenceBetweenLegs": 1,
      "LeftAxlePower": 1.1,
      "RightAxlePower": 1.1,
      "LeftAxleWeight": 1,
      "RightAxleWeight": 1,
      "AxleWeight": 2
    }
  ],
  "PlateNum": "sample string 1",
  "VendorName": "sample string 2",
  "VendorId": "sample string 3"
}

application/xml, text/xml

Sample:
<CarBrakesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.Common.Machines.Models">
  <PlateNum>sample string 1</PlateNum>
  <VendorId>sample string 3</VendorId>
  <VendorName>sample string 2</VendorName>
  <Axles>
    <CarBrakesResult.Axle>
      <AxleNum>1</AxleNum>
      <DifferenceBetweenLegs>1</DifferenceBetweenLegs>
      <LeftAxlePower>1.1</LeftAxlePower>
      <LeftAxleWeight>1</LeftAxleWeight>
      <RightAxlePower>1.1</RightAxlePower>
      <RightAxleWeight>1</RightAxleWeight>
    </CarBrakesResult.Axle>
    <CarBrakesResult.Axle>
      <AxleNum>1</AxleNum>
      <DifferenceBetweenLegs>1</DifferenceBetweenLegs>
      <LeftAxlePower>1.1</LeftAxlePower>
      <LeftAxleWeight>1</LeftAxleWeight>
      <RightAxlePower>1.1</RightAxlePower>
      <RightAxleWeight>1</RightAxleWeight>
    </CarBrakesResult.Axle>
  </Axles>
  <EfficiencyOfTheCar>1</EfficiencyOfTheCar>
  <ParkingBrakeEfficiency>1</ParkingBrakeEfficiency>
  <ParkingBrakeLeftPower>1.1</ParkingBrakeLeftPower>
  <ParkingBrakeRightPower>1.1</ParkingBrakeRightPower>
</CarBrakesResult>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>