POST api/TimeSheetApproval/timesheet-Action

Request Information

URI Parameters

None.

Body Parameters

TimesheetApproval
NameDescriptionTypeAdditional information
details

Details

None.

HIRER_ID

string

None.

DRIVER_ID

string

None.

TIMESHEET_ID

string

None.

TIMESHEET_IDS

string

None.

INVOICE_TYPE

string

None.

START_DATE

string

None.

ACTION_STATUS

string

None.

REJECTION_REASON

string

None.

DESCRIPTION

string

None.

AMOUNT

string

None.

Request Formats

application/json, text/json

Sample:
{
  "details": {
    "formName": "sample string 1",
    "userId": "sample string 2"
  },
  "HIRER_ID": "sample string 1",
  "DRIVER_ID": "sample string 2",
  "TIMESHEET_ID": "sample string 3",
  "TIMESHEET_IDS": "sample string 4",
  "INVOICE_TYPE": "sample string 5",
  "START_DATE": "sample string 6",
  "ACTION_STATUS": "sample string 7",
  "REJECTION_REASON": "sample string 8",
  "DESCRIPTION": "sample string 9",
  "AMOUNT": "sample string 10"
}

application/xml, text/xml

Sample:
<TimeSheetApprovalController.TimesheetApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HGVDG_API.Controllers.Driver">
  <ACTION_STATUS>sample string 7</ACTION_STATUS>
  <AMOUNT>sample string 10</AMOUNT>
  <DESCRIPTION>sample string 9</DESCRIPTION>
  <DRIVER_ID>sample string 2</DRIVER_ID>
  <HIRER_ID>sample string 1</HIRER_ID>
  <INVOICE_TYPE>sample string 5</INVOICE_TYPE>
  <REJECTION_REASON>sample string 8</REJECTION_REASON>
  <START_DATE>sample string 6</START_DATE>
  <TIMESHEET_ID>sample string 3</TIMESHEET_ID>
  <TIMESHEET_IDS>sample string 4</TIMESHEET_IDS>
  <details xmlns:d2p1="http://schemas.datacontract.org/2004/07/HGVDG_API">
    <d2p1:formName>sample string 1</d2p1:formName>
    <d2p1:userId>sample string 2</d2p1:userId>
  </details>
</TimeSheetApprovalController.TimesheetApproval>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TimesheetApproval'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>