POST api/Department?Action={Action}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Action | integer |
Default value is 2 |
Body Parameters
Department| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentID | integer |
None. |
|
| DepartmentName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DepartmentID": 1,
"DepartmentName": "sample string 2"
}
text/html
Sample:
{"DepartmentID":1,"DepartmentName":"sample string 2"}
application/xml, text/xml
Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TestWebAPI.Models"> <DepartmentID>1</DepartmentID> <DepartmentName>sample string 2</DepartmentName> </Department>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>