POST api/Home/SearchCourses

Request Information

URI Parameters

None.

Body Parameters

SearchParameter
NameDescriptionTypeAdditional information
OrderBy

CourseSearchOrderBy

None.

GroupId

integer

None.

InstitueId

integer

None.

TeacherId

integer

None.

Skip

integer

None.

Take

integer

None.

UserGroupCourseAccessCategory

EUserGroupCourseAccessCategory

None.

CourseTypes

Collection of ECourseType

None.

CourseLengths

Collection of ECourseLength

None.

MinPrice

integer

None.

MaxPrice

integer

None.

MinRate

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderBy": 1,
  "GroupId": 1,
  "InstitueId": 1,
  "TeacherId": 1,
  "Skip": 1,
  "Take": 1,
  "UserGroupCourseAccessCategory": 0,
  "CourseTypes": [
    0,
    0
  ],
  "CourseLengths": [
    0,
    0
  ],
  "MinPrice": 1,
  "MaxPrice": 1,
  "MinRate": 1
}

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 'SearchParameter'.

Response Information

Resource Description

SearchResultModel
NameDescriptionTypeAdditional information
Items

Collection of SearchResultItem

None.

TotalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "$id": "2",
      "Id": 1,
      "Name": "sample string 2",
      "Introduction": "sample string 3",
      "GroupName": "sample string 4",
      "ImageURL": "sample string 5",
      "Rating": 1.1,
      "RatingCount": 6,
      "Price": 7,
      "OldPrice": 8,
      "Priority": 9,
      "Level": 10,
      "IsPackage": true,
      "CoursesCount": 12,
      "NumberOfStudents": 13,
      "EnrolID": 1,
      "UserStatus": 14,
      "Progress": 15.1,
      "Score": 16.1,
      "PassScore": 17.1,
      "InPackageId": 1,
      "PackageOrderNumber": 18,
      "ContentProgresses": [
        {
          "$id": "3",
          "EnrolId": 1,
          "Type": 1,
          "TotalCount": 2,
          "PassedCount": 3
        },
        {
          "$ref": "3"
        }
      ],
      "TeacherId": 19,
      "TeacherName": "sample string 20",
      "TeacherImageURL": "sample string 21",
      "CourseLength": 22,
      "Comments": "sample string 23",
      "HasCertificate": true,
      "UserRate": 25.1,
      "HasParticipatedInSurvey": true,
      "ImagePath": "sample string 5",
      "CourseID": 1
    },
    {
      "$ref": "2"
    }
  ],
  "TotalCount": 1
}