POST api/AddExpense

Request Information

URI Parameters

None.

Body Parameters

Addexpense
NameDescriptionTypeAdditional information
EMPLOYEE_ID

string

None.

EXPENSE_CATEGORY_ID

string

None.

AMOUNT

string

None.

REMARK

string

None.

PHOTO1

Collection of byte

None.

PHOTO2

Collection of byte

None.

EXPENSE_DATE

string

None.

EXTRA1

string

None.

EXTRA2

string

None.

EXTRA3

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EMPLOYEE_ID": "sample string 1",
  "EXPENSE_CATEGORY_ID": "sample string 2",
  "AMOUNT": "sample string 3",
  "REMARK": "sample string 4",
  "PHOTO1": "QEA=",
  "PHOTO2": "QEA=",
  "EXPENSE_DATE": "sample string 5",
  "EXTRA1": "sample string 6",
  "EXTRA2": "sample string 7",
  "EXTRA3": "sample string 8"
}

application/xml, text/xml

Sample:
<Addexpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiFarmsons.Controllers">
  <AMOUNT>sample string 3</AMOUNT>
  <EMPLOYEE_ID>sample string 1</EMPLOYEE_ID>
  <EXPENSE_CATEGORY_ID>sample string 2</EXPENSE_CATEGORY_ID>
  <EXPENSE_DATE>sample string 5</EXPENSE_DATE>
  <EXTRA1>sample string 6</EXTRA1>
  <EXTRA2>sample string 7</EXTRA2>
  <EXTRA3>sample string 8</EXTRA3>
  <PHOTO1>QEA=</PHOTO1>
  <PHOTO2>QEA=</PHOTO2>
  <REMARK>sample string 4</REMARK>
</Addexpense>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.