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": "98d60b94-8082-4c22-ac42-0bff5e03533d",
"CreatedTime": "2025-10-26T13:07:37.1946814+07:00",
"UpdatedTime": "2025-10-26T13:07:37.1946814+07:00",
"CreatedId": "52dbb04a-14ae-405a-b2ee-31a18bd878f6",
"UpdatedId": "d4331511-797e-4ad6-a99e-2df5f4f1dc17",
"IsDeleted": true,
"DeletedTime": "2025-10-26T13:07:37.1956547+07:00",
"DeletedId": "450b3169-678c-44a7-aaec-0f5f7f82197f",
"Ten": "sample string 6"
},
{
"Id": 1,
"ParentId": 2,
"LoaiHinh": "sample string 3",
"MoTa": "sample string 4",
"AnhBiaId": "98d60b94-8082-4c22-ac42-0bff5e03533d",
"CreatedTime": "2025-10-26T13:07:37.1946814+07:00",
"UpdatedTime": "2025-10-26T13:07:37.1946814+07:00",
"CreatedId": "52dbb04a-14ae-405a-b2ee-31a18bd878f6",
"UpdatedId": "d4331511-797e-4ad6-a99e-2df5f4f1dc17",
"IsDeleted": true,
"DeletedTime": "2025-10-26T13:07:37.1956547+07:00",
"DeletedId": "450b3169-678c-44a7-aaec-0f5f7f82197f",
"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>98d60b94-8082-4c22-ac42-0bff5e03533d</AnhBiaId>
<CreatedId>52dbb04a-14ae-405a-b2ee-31a18bd878f6</CreatedId>
<CreatedTime>2025-10-26T13:07:37.1946814+07:00</CreatedTime>
<DeletedId>450b3169-678c-44a7-aaec-0f5f7f82197f</DeletedId>
<DeletedTime>2025-10-26T13:07:37.1956547+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>d4331511-797e-4ad6-a99e-2df5f4f1dc17</UpdatedId>
<UpdatedTime>2025-10-26T13:07:37.1946814+07:00</UpdatedTime>
</CategoryDto>
<CategoryDto>
<AnhBiaId>98d60b94-8082-4c22-ac42-0bff5e03533d</AnhBiaId>
<CreatedId>52dbb04a-14ae-405a-b2ee-31a18bd878f6</CreatedId>
<CreatedTime>2025-10-26T13:07:37.1946814+07:00</CreatedTime>
<DeletedId>450b3169-678c-44a7-aaec-0f5f7f82197f</DeletedId>
<DeletedTime>2025-10-26T13:07:37.1956547+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>d4331511-797e-4ad6-a99e-2df5f4f1dc17</UpdatedId>
<UpdatedTime>2025-10-26T13:07:37.1946814+07:00</UpdatedTime>
</CategoryDto>
</ArrayOfCategoryDto>