POST api/AttendanceAndTimesheet/InsertProductAndService

Request Information

URI Parameters

None.

Body Parameters

ProductAndService
NameDescriptionTypeAdditional information
CustomerID

integer

None.

ID

integer

None.

Type

string

None.

Userid

integer

None.

Token

string

None.

ForeCastAmount

decimal number

None.

Remarks

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "ID": 2,
  "Type": "sample string 3",
  "Userid": 4,
  "Token": "sample string 5",
  "ForeCastAmount": 6.0,
  "Remarks": "sample string 7"
}

text/html

Sample:
{"CustomerID":1,"ID":2,"Type":"sample string 3","Userid":4,"Token":"sample string 5","ForeCastAmount":6.0,"Remarks":"sample string 7"}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.ProductAndService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <CustomerID>1</CustomerID>
  <ForeCastAmount>6</ForeCastAmount>
  <ID>2</ID>
  <Remarks>sample string 7</Remarks>
  <Token>sample string 5</Token>
  <Type>sample string 3</Type>
  <Userid>4</Userid>
</AttendanceAndTimesheetController.ProductAndService>

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 'ProductAndService'.

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>