GET CourseCategory/GetAllCourseCategory?parentId={parentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| parentId | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of CourseCategoryResponseDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| MajorId | integer |
None. |
|
| Name | string |
None. |
|
| CategoryLevel2Names | string |
None. |
|
| Description | string |
None. |
|
| ParentId | integer |
None. |
|
| ParentName | string |
None. |
|
| State | integer |
None. |
|
| CreateTime | date |
None. |
|
| Type | integer |
None. |
|
| CreateTimeShow | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"MajorId": 2,
"Name": "sample string 3",
"CategoryLevel2Names": "sample string 4",
"Description": "sample string 5",
"ParentId": 6,
"ParentName": "sample string 7",
"State": 8,
"CreateTime": "2026-04-13T13:51:54.4976123+08:00",
"Type": 10,
"CreateTimeShow": "2026-04-13 13:51:54"
},
{
"Id": 1,
"MajorId": 2,
"Name": "sample string 3",
"CategoryLevel2Names": "sample string 4",
"Description": "sample string 5",
"ParentId": 6,
"ParentName": "sample string 7",
"State": 8,
"CreateTime": "2026-04-13T13:51:54.4976123+08:00",
"Type": 10,
"CreateTimeShow": "2026-04-13 13:51:54"
}
]
application/xml, text/xml
Sample:
<ArrayOfCourseCategoryResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.BackgroundDTO">
<CourseCategoryResponseDTO>
<CategoryLevel2Names>sample string 4</CategoryLevel2Names>
<CreateTime>2026-04-13T13:51:54.4976123+08:00</CreateTime>
<Description>sample string 5</Description>
<Id>1</Id>
<MajorId>2</MajorId>
<Name>sample string 3</Name>
<ParentId>6</ParentId>
<ParentName>sample string 7</ParentName>
<State>8</State>
<Type>10</Type>
</CourseCategoryResponseDTO>
<CourseCategoryResponseDTO>
<CategoryLevel2Names>sample string 4</CategoryLevel2Names>
<CreateTime>2026-04-13T13:51:54.4976123+08:00</CreateTime>
<Description>sample string 5</Description>
<Id>1</Id>
<MajorId>2</MajorId>
<Name>sample string 3</Name>
<ParentId>6</ParentId>
<ParentName>sample string 7</ParentName>
<State>8</State>
<Type>10</Type>
</CourseCategoryResponseDTO>
</ArrayOfCourseCategoryResponseDTO>