POST api/Category/Create
Request Information
URI Parameters
None.
Body Parameters
CreateCategoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ParentId | integer |
None. |
|
| Ten | string |
None. |
|
| MoTa | string |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| CreateId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"parentId": 1,
"ten": "sample string 2",
"moTa": "sample string 3",
"anhBiaId": "39b002d8-f969-4536-84bb-be7522dc42c6",
"createId": "0a32e24a-0af6-45f1-9741-579b91fbdf89"
}
application/xml, text/xml
Sample:
<CreateCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Category"> <AnhBiaId>39b002d8-f969-4536-84bb-be7522dc42c6</AnhBiaId> <CreateId>0a32e24a-0af6-45f1-9741-579b91fbdf89</CreateId> <MoTa>sample string 3</MoTa> <ParentId>1</ParentId> <Ten>sample string 2</Ten> </CreateCategoryRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>