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": "8fc716ec-e9b8-4616-99cf-467c7c6181df",
"CreatedTime": "2025-12-24T20:26:35.9200887+07:00",
"UpdatedTime": "2025-12-24T20:26:35.9210765+07:00",
"CreatedId": "79d70a6d-4ce8-4a00-a286-025f19cee749",
"UpdatedId": "2b03c992-fbe4-4094-8552-b3e0538528ac",
"IsDeleted": true,
"DeletedTime": "2025-12-24T20:26:35.9221691+07:00",
"DeletedId": "d79610c8-1e71-4408-bd7b-ffaa772793cc",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "8fc716ec-e9b8-4616-99cf-467c7c6181df",
"CreatedTime": "2025-12-24T20:26:35.9200887+07:00",
"UpdatedTime": "2025-12-24T20:26:35.9210765+07:00",
"CreatedId": "79d70a6d-4ce8-4a00-a286-025f19cee749",
"UpdatedId": "2b03c992-fbe4-4094-8552-b3e0538528ac",
"IsDeleted": true,
"DeletedTime": "2025-12-24T20:26:35.9221691+07:00",
"DeletedId": "d79610c8-1e71-4408-bd7b-ffaa772793cc",
"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>8fc716ec-e9b8-4616-99cf-467c7c6181df</AnhBiaId>
<CreatedId>79d70a6d-4ce8-4a00-a286-025f19cee749</CreatedId>
<CreatedTime>2025-12-24T20:26:35.9200887+07:00</CreatedTime>
<DeletedId>d79610c8-1e71-4408-bd7b-ffaa772793cc</DeletedId>
<DeletedTime>2025-12-24T20:26:35.9221691+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>2b03c992-fbe4-4094-8552-b3e0538528ac</UpdatedId>
<UpdatedTime>2025-12-24T20:26:35.9210765+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>8fc716ec-e9b8-4616-99cf-467c7c6181df</AnhBiaId>
<CreatedId>79d70a6d-4ce8-4a00-a286-025f19cee749</CreatedId>
<CreatedTime>2025-12-24T20:26:35.9200887+07:00</CreatedTime>
<DeletedId>d79610c8-1e71-4408-bd7b-ffaa772793cc</DeletedId>
<DeletedTime>2025-12-24T20:26:35.9221691+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>2b03c992-fbe4-4094-8552-b3e0538528ac</UpdatedId>
<UpdatedTime>2025-12-24T20:26:35.9210765+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>