POST api/CarbonfootPrint/SubmitVehicle
Request Information
URI Parameters
None.
Body Parameters
SubmitVehicleModelName | Description | Type | Additional information |
---|---|---|---|
VehicleTypeId | integer |
None. |
|
ServiceWorkerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "VehicleTypeId": 1, "ServiceWorkerId": 1 }
text/html
Sample:
{"VehicleTypeId":1,"ServiceWorkerId":1}
application/xml, text/xml
Sample:
<SubmitVehicleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.CarbonFootPrintModels"> <ServiceWorkerId>1</ServiceWorkerId> <VehicleTypeId>1</VehicleTypeId> </SubmitVehicleModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CarbonFootPrintBaseResponseModelOfStringName | Description | Type | Additional information |
---|---|---|---|
isSuccess | boolean |
None. |
|
message | string |
None. |
|
errors | string |
None. |
|
result | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "isSuccess": true, "message": "sample string 2", "errors": "sample string 3", "result": "sample string 4" }
text/html
Sample:
{"isSuccess":true,"message":"sample string 2","errors":"sample string 3","result":"sample string 4"}
application/xml, text/xml
Sample:
<CarbonFootPrintBaseResponseModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.CarbonFootPrintModels"> <errors>sample string 3</errors> <isSuccess>true</isSuccess> <message>sample string 2</message> <result>sample string 4</result> </CarbonFootPrintBaseResponseModelOfstring>