POST GetCourseRecommend

Request Information

URI Parameters

None.

Body Parameters

CourseRecommendRequestDTO
NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

Tag

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 2,
  "Tag": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<CourseRecommendRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.DTO">
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
  <Tag xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Tag>
</CourseRecommendRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CourseRecommendRequestDTO'.

Response Information

Resource Description

TupleOfIListOfCourseRecommendResponseDTOAndInt32
NameDescriptionTypeAdditional information
Item1

Collection of CourseRecommendResponseDTO

None.

Item2

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "m_Item1": [
    {
      "Id": 1,
      "CourseName": "sample string 2",
      "Timelength": 3,
      "PcImg": "sample string 4",
      "CourseCode": "sample string 5"
    },
    {
      "Id": 1,
      "CourseName": "sample string 2",
      "Timelength": 3,
      "PcImg": "sample string 4",
      "CourseCode": "sample string 5"
    }
  ],
  "m_Item2": 1
}

application/xml, text/xml

Sample:
<TupleOfArrayOfCourseRecommendResponseDTOintjKieGXTP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System">
  <m_Item1 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.DTO">
    <d2p1:CourseRecommendResponseDTO>
      <d2p1:CourseCode>sample string 5</d2p1:CourseCode>
      <d2p1:CourseName>sample string 2</d2p1:CourseName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PcImg>sample string 4</d2p1:PcImg>
      <d2p1:Timelength>3</d2p1:Timelength>
    </d2p1:CourseRecommendResponseDTO>
    <d2p1:CourseRecommendResponseDTO>
      <d2p1:CourseCode>sample string 5</d2p1:CourseCode>
      <d2p1:CourseName>sample string 2</d2p1:CourseName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PcImg>sample string 4</d2p1:PcImg>
      <d2p1:Timelength>3</d2p1:Timelength>
    </d2p1:CourseRecommendResponseDTO>
  </m_Item1>
  <m_Item2>1</m_Item2>
</TupleOfArrayOfCourseRecommendResponseDTOintjKieGXTP>