GET api/fault/{serviceId}/latest

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceFaultDetailsDto
NameDescriptionTypeAdditional information
ServiceId

integer

None.

ServiceFaults

Collection of ServiceFault

None.

Response Formats

application/json, text/json

Sample:
{
  "ServiceId": 1,
  "ServiceFaults": [
    {
      "Id": 1,
      "ServiceId": 1,
      "FaultDateTime": "2018-02-19T03:35:55.087292+00:00",
      "Dtcs": [
        "sample string 1",
        "sample string 2"
      ],
      "ProbableCauses": [
        {
          "Title": "sample string 1",
          "RepairUrgency": "sample string 2",
          "Action": "sample string 3",
          "TimeHours": 4.0,
          "TimeMinutes": 5,
          "PartsJson": "sample string 6"
        },
        {
          "Title": "sample string 1",
          "RepairUrgency": "sample string 2",
          "Action": "sample string 3",
          "TimeHours": 4.0,
          "TimeMinutes": 5,
          "PartsJson": "sample string 6"
        }
      ],
      "Description": "sample string 3"
    },
    {
      "Id": 1,
      "ServiceId": 1,
      "FaultDateTime": "2018-02-19T03:35:55.087292+00:00",
      "Dtcs": [
        "sample string 1",
        "sample string 2"
      ],
      "ProbableCauses": [
        {
          "Title": "sample string 1",
          "RepairUrgency": "sample string 2",
          "Action": "sample string 3",
          "TimeHours": 4.0,
          "TimeMinutes": 5,
          "PartsJson": "sample string 6"
        },
        {
          "Title": "sample string 1",
          "RepairUrgency": "sample string 2",
          "Action": "sample string 3",
          "TimeHours": 4.0,
          "TimeMinutes": 5,
          "PartsJson": "sample string 6"
        }
      ],
      "Description": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ServiceFaultDetailsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oasis.Webservices.Rest.Journey.Controllers">
  <ServiceFaults xmlns:d2p1="http://schemas.datacontract.org/2004/07/Oasis.TypeLib.Faults">
    <d2p1:ServiceFault>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Dtcs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Dtcs>
      <d2p1:FaultDateTime>2018-02-19T03:35:55.087292+00:00</d2p1:FaultDateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ProbableCauses>
        <d2p1:ProbableCause>
          <d2p1:Action>sample string 3</d2p1:Action>
          <d2p1:PartsJson>sample string 6</d2p1:PartsJson>
          <d2p1:RepairUrgency>sample string 2</d2p1:RepairUrgency>
          <d2p1:TimeHours>4</d2p1:TimeHours>
          <d2p1:TimeMinutes>5</d2p1:TimeMinutes>
          <d2p1:Title>sample string 1</d2p1:Title>
        </d2p1:ProbableCause>
        <d2p1:ProbableCause>
          <d2p1:Action>sample string 3</d2p1:Action>
          <d2p1:PartsJson>sample string 6</d2p1:PartsJson>
          <d2p1:RepairUrgency>sample string 2</d2p1:RepairUrgency>
          <d2p1:TimeHours>4</d2p1:TimeHours>
          <d2p1:TimeMinutes>5</d2p1:TimeMinutes>
          <d2p1:Title>sample string 1</d2p1:Title>
        </d2p1:ProbableCause>
      </d2p1:ProbableCauses>
      <d2p1:ServiceId>1</d2p1:ServiceId>
    </d2p1:ServiceFault>
    <d2p1:ServiceFault>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Dtcs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Dtcs>
      <d2p1:FaultDateTime>2018-02-19T03:35:55.087292+00:00</d2p1:FaultDateTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ProbableCauses>
        <d2p1:ProbableCause>
          <d2p1:Action>sample string 3</d2p1:Action>
          <d2p1:PartsJson>sample string 6</d2p1:PartsJson>
          <d2p1:RepairUrgency>sample string 2</d2p1:RepairUrgency>
          <d2p1:TimeHours>4</d2p1:TimeHours>
          <d2p1:TimeMinutes>5</d2p1:TimeMinutes>
          <d2p1:Title>sample string 1</d2p1:Title>
        </d2p1:ProbableCause>
        <d2p1:ProbableCause>
          <d2p1:Action>sample string 3</d2p1:Action>
          <d2p1:PartsJson>sample string 6</d2p1:PartsJson>
          <d2p1:RepairUrgency>sample string 2</d2p1:RepairUrgency>
          <d2p1:TimeHours>4</d2p1:TimeHours>
          <d2p1:TimeMinutes>5</d2p1:TimeMinutes>
          <d2p1:Title>sample string 1</d2p1:Title>
        </d2p1:ProbableCause>
      </d2p1:ProbableCauses>
      <d2p1:ServiceId>1</d2p1:ServiceId>
    </d2p1:ServiceFault>
  </ServiceFaults>
  <ServiceId>1</ServiceId>
</ServiceFaultDetailsDto>