POST api/Category/AddCategory
Request Information
URI Parameters
None.
Body Parameters
AddCategoryDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FatherId | integer |
None. |
|
| Name | string |
None. |
|
| Path | string |
None. |
|
| UserType | integer |
None. |
|
| UserId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"FatherId": 2,
"Name": "sample string 3",
"Path": "sample string 4",
"UserType": 5,
"UserId": "sample string 6"
}
application/xml, text/xml
Sample:
<AddCategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMGServer.Web.Models.Dto"> <UserId xmlns="http://schemas.datacontract.org/2004/07/IMGServer.Web.Models">sample string 6</UserId> <UserType xmlns="http://schemas.datacontract.org/2004/07/IMGServer.Web.Models">5</UserType> <FatherId>2</FatherId> <Id>1</Id> <Name>sample string 3</Name> <Path>sample string 4</Path> </AddCategoryDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AjaxResultEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess | boolean |
None. |
|
| Msg | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccess": true,
"Msg": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<AjaxResultEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMGServer.Web.Models"> <Data /> <IsSuccess>true</IsSuccess> <Msg>sample string 2</Msg> </AjaxResultEntity>