GET api/Category/GetCategoryByKeySearch?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": "c1873906-aded-4c1c-9c45-07869592344d",
"CreatedTime": "2026-04-14T19:39:28.4836918+07:00",
"UpdatedTime": "2026-04-14T19:39:28.4836918+07:00",
"CreatedId": "0e5fa54a-d8fc-4bee-85e7-a28b1d8e4548",
"UpdatedId": "dae7bcee-23b2-4ec2-b234-c7d7a1b44467",
"IsDeleted": true,
"DeletedTime": "2026-04-14T19:39:28.4836918+07:00",
"DeletedId": "0e5aef10-7a25-4c6b-8535-43f30b005453",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "c1873906-aded-4c1c-9c45-07869592344d",
"CreatedTime": "2026-04-14T19:39:28.4836918+07:00",
"UpdatedTime": "2026-04-14T19:39:28.4836918+07:00",
"CreatedId": "0e5fa54a-d8fc-4bee-85e7-a28b1d8e4548",
"UpdatedId": "dae7bcee-23b2-4ec2-b234-c7d7a1b44467",
"IsDeleted": true,
"DeletedTime": "2026-04-14T19:39:28.4836918+07:00",
"DeletedId": "0e5aef10-7a25-4c6b-8535-43f30b005453",
"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>c1873906-aded-4c1c-9c45-07869592344d</AnhBiaId>
<CreatedId>0e5fa54a-d8fc-4bee-85e7-a28b1d8e4548</CreatedId>
<CreatedTime>2026-04-14T19:39:28.4836918+07:00</CreatedTime>
<DeletedId>0e5aef10-7a25-4c6b-8535-43f30b005453</DeletedId>
<DeletedTime>2026-04-14T19:39:28.4836918+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>dae7bcee-23b2-4ec2-b234-c7d7a1b44467</UpdatedId>
<UpdatedTime>2026-04-14T19:39:28.4836918+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>c1873906-aded-4c1c-9c45-07869592344d</AnhBiaId>
<CreatedId>0e5fa54a-d8fc-4bee-85e7-a28b1d8e4548</CreatedId>
<CreatedTime>2026-04-14T19:39:28.4836918+07:00</CreatedTime>
<DeletedId>0e5aef10-7a25-4c6b-8535-43f30b005453</DeletedId>
<DeletedTime>2026-04-14T19:39:28.4836918+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>dae7bcee-23b2-4ec2-b234-c7d7a1b44467</UpdatedId>
<UpdatedTime>2026-04-14T19:39:28.4836918+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>