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": "56785e23-2165-4b0e-be28-5f2769c2ef8b",
"CreatedTime": "2026-04-21T17:27:06.3469303+07:00",
"UpdatedTime": "2026-04-21T17:27:06.3469303+07:00",
"CreatedId": "a72c5bcb-7c75-48eb-aa02-a1b7fe78a2ba",
"UpdatedId": "70636f7a-71f8-462f-bf93-791a142c8faa",
"IsDeleted": true,
"DeletedTime": "2026-04-21T17:27:06.3469303+07:00",
"DeletedId": "a526941c-536e-4aaa-b339-5fae5ddfde1a",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "56785e23-2165-4b0e-be28-5f2769c2ef8b",
"CreatedTime": "2026-04-21T17:27:06.3469303+07:00",
"UpdatedTime": "2026-04-21T17:27:06.3469303+07:00",
"CreatedId": "a72c5bcb-7c75-48eb-aa02-a1b7fe78a2ba",
"UpdatedId": "70636f7a-71f8-462f-bf93-791a142c8faa",
"IsDeleted": true,
"DeletedTime": "2026-04-21T17:27:06.3469303+07:00",
"DeletedId": "a526941c-536e-4aaa-b339-5fae5ddfde1a",
"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>56785e23-2165-4b0e-be28-5f2769c2ef8b</AnhBiaId>
<CreatedId>a72c5bcb-7c75-48eb-aa02-a1b7fe78a2ba</CreatedId>
<CreatedTime>2026-04-21T17:27:06.3469303+07:00</CreatedTime>
<DeletedId>a526941c-536e-4aaa-b339-5fae5ddfde1a</DeletedId>
<DeletedTime>2026-04-21T17:27:06.3469303+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>70636f7a-71f8-462f-bf93-791a142c8faa</UpdatedId>
<UpdatedTime>2026-04-21T17:27:06.3469303+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>56785e23-2165-4b0e-be28-5f2769c2ef8b</AnhBiaId>
<CreatedId>a72c5bcb-7c75-48eb-aa02-a1b7fe78a2ba</CreatedId>
<CreatedTime>2026-04-21T17:27:06.3469303+07:00</CreatedTime>
<DeletedId>a526941c-536e-4aaa-b339-5fae5ddfde1a</DeletedId>
<DeletedTime>2026-04-21T17:27:06.3469303+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>70636f7a-71f8-462f-bf93-791a142c8faa</UpdatedId>
<UpdatedTime>2026-04-21T17:27:06.3469303+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>