GET api/Category/GetCategoryParentByKeySearch?keySearch={keySearch}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| keySearch | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CategoryDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ParentId | integer |
None. |
|
| LoaiHinh | string |
None. |
|
| MoTa | string |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedTime | date |
None. |
|
| CreatedId | globally unique identifier |
None. |
|
| UpdatedId | globally unique identifier |
None. |
|
| IsDeleted | boolean |
None. |
|
| DeletedTime | date |
None. |
|
| DeletedId | globally unique identifier |
None. |
|
| Ten | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "d0d9c8ab-2dbb-4e60-9066-977cea673344",
"CreatedTime": "2026-04-21T17:27:33.3536932+07:00",
"UpdatedTime": "2026-04-21T17:27:33.3536932+07:00",
"CreatedId": "6e6fd8b6-1348-4221-9ce9-5a809a24cc2a",
"UpdatedId": "00240fe2-7195-4d0c-82e8-1e96a1bc3376",
"IsDeleted": true,
"DeletedTime": "2026-04-21T17:27:33.3536932+07:00",
"DeletedId": "2426748f-4b8e-4f4b-b264-953b714c3bb2",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "d0d9c8ab-2dbb-4e60-9066-977cea673344",
"CreatedTime": "2026-04-21T17:27:33.3536932+07:00",
"UpdatedTime": "2026-04-21T17:27:33.3536932+07:00",
"CreatedId": "6e6fd8b6-1348-4221-9ce9-5a809a24cc2a",
"UpdatedId": "00240fe2-7195-4d0c-82e8-1e96a1bc3376",
"IsDeleted": true,
"DeletedTime": "2026-04-21T17:27:33.3536932+07:00",
"DeletedId": "2426748f-4b8e-4f4b-b264-953b714c3bb2",
"Ten": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfCategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto">
<CategoryDto>
<AnhBiaId>d0d9c8ab-2dbb-4e60-9066-977cea673344</AnhBiaId>
<CreatedId>6e6fd8b6-1348-4221-9ce9-5a809a24cc2a</CreatedId>
<CreatedTime>2026-04-21T17:27:33.3536932+07:00</CreatedTime>
<DeletedId>2426748f-4b8e-4f4b-b264-953b714c3bb2</DeletedId>
<DeletedTime>2026-04-21T17:27:33.3536932+07:00</DeletedTime>
<Id>1</Id>
<IsDeleted>true</IsDeleted>
<LoaiHinh>sample string 3</LoaiHinh>
<MoTa>sample string 4</MoTa>
<ParentId>2</ParentId>
<Ten>sample string 6</Ten>
<UpdatedId>00240fe2-7195-4d0c-82e8-1e96a1bc3376</UpdatedId>
<UpdatedTime>2026-04-21T17:27:33.3536932+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>d0d9c8ab-2dbb-4e60-9066-977cea673344</AnhBiaId>
<CreatedId>6e6fd8b6-1348-4221-9ce9-5a809a24cc2a</CreatedId>
<CreatedTime>2026-04-21T17:27:33.3536932+07:00</CreatedTime>
<DeletedId>2426748f-4b8e-4f4b-b264-953b714c3bb2</DeletedId>
<DeletedTime>2026-04-21T17:27:33.3536932+07:00</DeletedTime>
<Id>1</Id>
<IsDeleted>true</IsDeleted>
<LoaiHinh>sample string 3</LoaiHinh>
<MoTa>sample string 4</MoTa>
<ParentId>2</ParentId>
<Ten>sample string 6</Ten>
<UpdatedId>00240fe2-7195-4d0c-82e8-1e96a1bc3376</UpdatedId>
<UpdatedTime>2026-04-21T17:27:33.3536932+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>