POST api/AddValueToCivilLaw

Request Information

URI Parameters

None.

Body Parameters

CivilLawValue
NameDescriptionTypeAdditional information
EmployeeCode

string

None.

CivilLawCode

string

None.

Value

decimal number

None.

Month

string

None.

Year

integer

None.

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeCode": "sample string 1",
  "CivilLawCode": "sample string 2",
  "Value": 3.0,
  "Month": "sample string 4",
  "Year": 1,
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<CivilLawValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <CivilLawCode>sample string 2</CivilLawCode>
  <EmployeeCode>sample string 1</EmployeeCode>
  <Month>sample string 4</Month>
  <Value>3</Value>
  <Year>1</Year>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
</CivilLawValue>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.