GET api/Home/SearchKeyword?keyword={keyword}&type={type}&skip={skip}&take={take}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
keyword

string

Required

type

ESearchKeywordType

Default value is All

skip

integer

Default value is 0

take

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

SearchKeywordResult
NameDescriptionTypeAdditional information
Courses

Collection of SearchResultItem

None.

Packages

Collection of SearchResultItem

None.

Teachers

Collection of Teacher

None.

Institues

Collection of Institue

None.

TotalCourses

integer

None.

TotalPackages

integer

None.

TotalTeachers

integer

None.

TotalInstitues

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Courses": [
    {
      "$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"
    }
  ],
  "Packages": [
    {
      "$ref": "2"
    },
    {
      "$ref": "2"
    }
  ],
  "Teachers": [
    {
      "$id": "4",
      "TeacherID": 1,
      "Title": "sample string 2",
      "Name": "sample string 3",
      "Family": "sample string 4",
      "Gender": true,
      "ShortTitle": "sample string 6",
      "Introduction": "sample string 7",
      "EducationRecord": "sample string 8",
      "TeachingArea": "sample string 9",
      "WorkExperience": "sample string 10",
      "TeachingExperience": "sample string 11",
      "Email": "sample string 12",
      "WebSite": "sample string 13",
      "Telephone": "sample string 14",
      "ImageID": 15,
      "CellPhone": "sample string 16",
      "Address": "sample string 17",
      "Active": true,
      "CreateDate": "2020-11-25T21:47:24.2218531+03:30",
      "NationalCode": "sample string 20",
      "Fullname": "sample string 21",
      "ImageURL": "sample string 22",
      "ImageURL2": "sample string 23",
      "JalaliCreateDate": "sample string 24",
      "Rating": 25.1,
      "GroupName": "sample string 26",
      "CoursesCount": 27,
      "StudentsCount": 28
    },
    {
      "$ref": "4"
    }
  ],
  "Institues": [
    {
      "$id": "5",
      "ID": 1,
      "Name": "sample string 2",
      "Logo": 3,
      "LogoUrl": "sample string 4",
      "Address": "sample string 5",
      "Phone": "sample string 6",
      "AccountNumber": "sample string 7",
      "CertificateTemplate": "sample string 8",
      "CertificateTemplateID": 1,
      "InterfaceInstitute": "sample string 9",
      "Franchise": 10,
      "Priority": 11,
      "Introduction": "sample string 12",
      "DirectPayment": true,
      "IsDisplay": true,
      "PaymentType": 15,
      "CertificateTemplateUrl": "sample string 16",
      "Rating": 17.1,
      "CoursesCount": 18,
      "StudentsCount": 19
    },
    {
      "$ref": "5"
    }
  ],
  "TotalCourses": 1,
  "TotalPackages": 2,
  "TotalTeachers": 3,
  "TotalInstitues": 4
}