POST api/GarageJobDone

Request Information

URI Parameters

None.

Body Parameters

jobDoneModel
NameDescriptionTypeAdditional information
userId

string

None.

RequestId

integer

None.

GarageId

integer

None.

ProblemId

integer

None.

other

string

None.

IsOtherservices

boolean

None.

AdditionalServices

Collection of AdditionalServicesModel

None.

services

string

None.

amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "RequestId": 2,
  "GarageId": 3,
  "ProblemId": 4,
  "other": "sample string 5",
  "IsOtherservices": true,
  "AdditionalServices": [
    {
      "ProblemList2": [
        {
          "ProblemId": 1,
          "Peoblem": "sample string 2",
          "Charges": 1.0,
          "Active": true
        },
        {
          "ProblemId": 1,
          "Peoblem": "sample string 2",
          "Charges": 1.0,
          "Active": true
        }
      ],
      "GarageId": 1,
      "RequestId": 2,
      "ProblemId": 3,
      "servicename": "sample string 4",
      "amount": 5.0
    },
    {
      "ProblemList2": [
        {
          "ProblemId": 1,
          "Peoblem": "sample string 2",
          "Charges": 1.0,
          "Active": true
        },
        {
          "ProblemId": 1,
          "Peoblem": "sample string 2",
          "Charges": 1.0,
          "Active": true
        }
      ],
      "GarageId": 1,
      "RequestId": 2,
      "ProblemId": 3,
      "servicename": "sample string 4",
      "amount": 5.0
    }
  ],
  "services": "sample string 7",
  "amount": 8.0
}

application/xml, text/xml

Sample:
<jobDoneModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mechon.Models">
  <AdditionalServices xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mechon">
    <d2p1:AdditionalServicesModel>
      <d2p1:GarageId>1</d2p1:GarageId>
      <d2p1:ProblemId>3</d2p1:ProblemId>
      <d2p1:ProblemList2>
        <Problem>
          <Active>true</Active>
          <Charges>1</Charges>
          <Peoblem>sample string 2</Peoblem>
          <ProblemId>1</ProblemId>
        </Problem>
        <Problem>
          <Active>true</Active>
          <Charges>1</Charges>
          <Peoblem>sample string 2</Peoblem>
          <ProblemId>1</ProblemId>
        </Problem>
      </d2p1:ProblemList2>
      <d2p1:RequestId>2</d2p1:RequestId>
      <d2p1:amount>5</d2p1:amount>
      <d2p1:servicename>sample string 4</d2p1:servicename>
    </d2p1:AdditionalServicesModel>
    <d2p1:AdditionalServicesModel>
      <d2p1:GarageId>1</d2p1:GarageId>
      <d2p1:ProblemId>3</d2p1:ProblemId>
      <d2p1:ProblemList2>
        <Problem>
          <Active>true</Active>
          <Charges>1</Charges>
          <Peoblem>sample string 2</Peoblem>
          <ProblemId>1</ProblemId>
        </Problem>
        <Problem>
          <Active>true</Active>
          <Charges>1</Charges>
          <Peoblem>sample string 2</Peoblem>
          <ProblemId>1</ProblemId>
        </Problem>
      </d2p1:ProblemList2>
      <d2p1:RequestId>2</d2p1:RequestId>
      <d2p1:amount>5</d2p1:amount>
      <d2p1:servicename>sample string 4</d2p1:servicename>
    </d2p1:AdditionalServicesModel>
  </AdditionalServices>
  <GarageId>3</GarageId>
  <IsOtherservices>true</IsOtherservices>
  <ProblemId>4</ProblemId>
  <RequestId>2</RequestId>
  <amount>8</amount>
  <other>sample string 5</other>
  <services>sample string 7</services>
  <userId>sample string 1</userId>
</jobDoneModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />