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": "bdb9e508-43db-4fd2-8a0d-e0aa1a33591d",
"CreatedTime": "2025-12-24T20:27:42.1154163+07:00",
"UpdatedTime": "2025-12-24T20:27:42.1154163+07:00",
"CreatedId": "a92551c9-721e-4648-ba78-5c42393d94d6",
"UpdatedId": "1ee88b8f-dac6-4eb7-9250-13ca331708f9",
"IsDeleted": true,
"DeletedTime": "2025-12-24T20:27:42.1154163+07:00",
"DeletedId": "eb2a33c0-16b9-43e3-ab60-069382cf2d9e",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "bdb9e508-43db-4fd2-8a0d-e0aa1a33591d",
"CreatedTime": "2025-12-24T20:27:42.1154163+07:00",
"UpdatedTime": "2025-12-24T20:27:42.1154163+07:00",
"CreatedId": "a92551c9-721e-4648-ba78-5c42393d94d6",
"UpdatedId": "1ee88b8f-dac6-4eb7-9250-13ca331708f9",
"IsDeleted": true,
"DeletedTime": "2025-12-24T20:27:42.1154163+07:00",
"DeletedId": "eb2a33c0-16b9-43e3-ab60-069382cf2d9e",
"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>bdb9e508-43db-4fd2-8a0d-e0aa1a33591d</AnhBiaId>
<CreatedId>a92551c9-721e-4648-ba78-5c42393d94d6</CreatedId>
<CreatedTime>2025-12-24T20:27:42.1154163+07:00</CreatedTime>
<DeletedId>eb2a33c0-16b9-43e3-ab60-069382cf2d9e</DeletedId>
<DeletedTime>2025-12-24T20:27:42.1154163+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>1ee88b8f-dac6-4eb7-9250-13ca331708f9</UpdatedId>
<UpdatedTime>2025-12-24T20:27:42.1154163+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>bdb9e508-43db-4fd2-8a0d-e0aa1a33591d</AnhBiaId>
<CreatedId>a92551c9-721e-4648-ba78-5c42393d94d6</CreatedId>
<CreatedTime>2025-12-24T20:27:42.1154163+07:00</CreatedTime>
<DeletedId>eb2a33c0-16b9-43e3-ab60-069382cf2d9e</DeletedId>
<DeletedTime>2025-12-24T20:27:42.1154163+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>1ee88b8f-dac6-4eb7-9250-13ca331708f9</UpdatedId>
<UpdatedTime>2025-12-24T20:27:42.1154163+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>