POST api/Travel/AddMileageAttachment
Request Information
URI Parameters
None.
Body Parameters
AttachementDetailsName | Description | Type | Additional information |
---|---|---|---|
UserID | integer |
None. |
|
FileName | string |
None. |
|
MealAllowanceFileName | string |
None. |
|
TollAmountFileName | string |
None. |
|
ParkingFileName | string |
None. |
|
MiscellaneousFileName | string |
None. |
|
LodgingFileName | string |
None. |
|
Attachment | string |
None. |
|
MealAllowanceAttachment | string |
None. |
|
TollAmountAttachment | string |
None. |
|
ParkingAttachment | string |
None. |
|
MiscellaneousAttachment | string |
None. |
|
LodgingAttachment | string |
None. |
|
Iteration | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserID": 1, "FileName": "sample string 2", "MealAllowanceFileName": "sample string 3", "TollAmountFileName": "sample string 4", "ParkingFileName": "sample string 5", "MiscellaneousFileName": "sample string 6", "LodgingFileName": "sample string 7", "Attachment": "sample string 8", "MealAllowanceAttachment": "sample string 9", "TollAmountAttachment": "sample string 10", "ParkingAttachment": "sample string 11", "MiscellaneousAttachment": "sample string 12", "LodgingAttachment": "sample string 13", "Iteration": 14 }
text/html
Sample:
{"UserID":1,"FileName":"sample string 2","MealAllowanceFileName":"sample string 3","TollAmountFileName":"sample string 4","ParkingFileName":"sample string 5","MiscellaneousFileName":"sample string 6","LodgingFileName":"sample string 7","Attachment":"sample string 8","MealAllowanceAttachment":"sample string 9","TollAmountAttachment":"sample string 10","ParkingAttachment":"sample string 11","MiscellaneousAttachment":"sample string 12","LodgingAttachment":"sample string 13","Iteration":14}
application/xml, text/xml
Sample:
<TravelController.AttachementDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers"> <Attachment>sample string 8</Attachment> <FileName>sample string 2</FileName> <Iteration>14</Iteration> <LodgingAttachment>sample string 13</LodgingAttachment> <LodgingFileName>sample string 7</LodgingFileName> <MealAllowanceAttachment>sample string 9</MealAllowanceAttachment> <MealAllowanceFileName>sample string 3</MealAllowanceFileName> <MiscellaneousAttachment>sample string 12</MiscellaneousAttachment> <MiscellaneousFileName>sample string 6</MiscellaneousFileName> <ParkingAttachment>sample string 11</ParkingAttachment> <ParkingFileName>sample string 5</ParkingFileName> <TollAmountAttachment>sample string 10</TollAmountAttachment> <TollAmountFileName>sample string 4</TollAmountFileName> <UserID>1</UserID> </TravelController.AttachementDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Dictionary of Object [key] and Object [value]Response Formats
application/json, text/json, text/html
Sample:
{"System.Object":{},"System.Object":{}}
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfanyTypeanyType> <Key /> <Value /> </KeyValueOfanyTypeanyType> <KeyValueOfanyTypeanyType> <Key /> <Value /> </KeyValueOfanyTypeanyType> </ArrayOfKeyValueOfanyTypeanyType>