POST CourseCategory/GetCourseCategory

Request Information

URI Parameters

None.

Body Parameters

QueryCourseCategoryDTO
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

PageIndex

integer

None.

PageSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "PageIndex": 3,
  "PageSize": 4
}

application/xml, text/xml

Sample:
<QueryCourseCategoryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.BackgroundDTO">
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <PageIndex>3</PageIndex>
  <PageSize>4</PageSize>
</QueryCourseCategoryDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CourseCategoryResponseDTO
NameDescriptionTypeAdditional 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:48:03.5780057+08:00",
    "Type": 10,
    "CreateTimeShow": "2026-04-13 13:48:03"
  },
  {
    "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:48:03.5780057+08:00",
    "Type": 10,
    "CreateTimeShow": "2026-04-13 13:48:03"
  }
]

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:48:03.5780057+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:48:03.5780057+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>