POST api/PumpAndroid/SaveVehicle/{code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

None.

Body Parameters

VehicleMaster
NameDescriptionTypeAdditional information
SupplierId

integer

None.

Name

string

None.

VehicleNo

string

None.

OldVehicleNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SupplierId": 1,
  "Name": "sample string 2",
  "VehicleNo": "sample string 3",
  "OldVehicleNo": "sample string 4"
}

application/xml, text/xml

Sample:
<VehicleMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PumpAndroid.Models">
  <Name>sample string 2</Name>
  <OldVehicleNo>sample string 4</OldVehicleNo>
  <SupplierId>1</SupplierId>
  <VehicleNo>sample string 3</VehicleNo>
</VehicleMaster>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Message

string

None.

Status

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
</Response>