POST api/Eems/InsertBorrowDoc

Request Information

URI Parameters

None.

Body Parameters

InsertBorrowDocModel
NameDescriptionTypeAdditional information
doc_id

string

None.

start_date

string

None.

end_date

string

None.

meal

integer

None.

borrow_detail

BorrowDetailModel

None.

total_borrow_amount

integer

None.

remark

string

None.

is_borrow_fuel

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "doc_id": "sample string 1",
  "start_date": "sample string 2",
  "end_date": "sample string 3",
  "meal": 1,
  "borrow_detail": {
    "allowance": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    },
    "meal": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    },
    "accommodation": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    },
    "fuel": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    },
    "vehicle": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    },
    "other": {
      "quantity": 1,
      "amount": 1,
      "total_amount": 1
    }
  },
  "total_borrow_amount": 1,
  "remark": "sample string 4",
  "is_borrow_fuel": true
}

application/xml, text/xml

Sample:
<InsertBorrowDocModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEALife.Model">
  <borrow_detail>
    <accommodation>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </accommodation>
    <allowance>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </allowance>
    <fuel>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </fuel>
    <meal>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </meal>
    <other>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </other>
    <vehicle>
      <amount>1</amount>
      <quantity>1</quantity>
      <total_amount>1</total_amount>
    </vehicle>
  </borrow_detail>
  <doc_id>sample string 1</doc_id>
  <end_date>sample string 3</end_date>
  <is_borrow_fuel>true</is_borrow_fuel>
  <meal>1</meal>
  <remark>sample string 4</remark>
  <start_date>sample string 2</start_date>
  <total_borrow_amount>1</total_borrow_amount>
</InsertBorrowDocModel>

multipart/form-data

Sample:
<InsertBorrowDocModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEALife.Model"><borrow_detail><accommodation><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></accommodation><allowance><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></allowance><fuel><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></fuel><meal><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></meal><other><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></other><vehicle><amount>1</amount><quantity>1</quantity><total_amount>1</total_amount></vehicle></borrow_detail><doc_id>sample string 1</doc_id><end_date>sample string 3</end_date><is_borrow_fuel>true</is_borrow_fuel><meal>1</meal><remark>sample string 4</remark><start_date>sample string 2</start_date><total_borrow_amount>1</total_borrow_amount></InsertBorrowDocModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.