POST api/DepartmentDetails/CreateDepartment

Request Information

URI Parameters

None.

Body Parameters

DepartmentModel
NameDescriptionTypeAdditional information
dep_Id

integer

None.

dep_Code

string

None.

dep_Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "dep_Id": 1,
  "dep_Code": "sample string 2",
  "dep_Name": "sample string 3"
}

application/xml, text/xml

Sample:
<DepartmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <dep_Code>sample string 2</dep_Code>
  <dep_Id>1</dep_Id>
  <dep_Name>sample string 3</dep_Name>
</DepartmentModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.