GET api/Instructors/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Instructor| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 20 |
|
| Language | string |
Required String length: inclusive between 0 and 15 |
|
| Nationality | string |
Required String length: inclusive between 0 and 25 |
|
| Gender | string |
Required String length: inclusive between 0 and 10 |
|
| Phone | string |
Matching regular expression pattern: ^[0-9]*$ |
|
| string |
Matching regular expression pattern: ^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$ |
||
| Education | string |
Required |
|
| OneLineTitle | string |
Required String length: inclusive between 0 and 50 |
|
| Description | string |
Required String length: inclusive between 0 and 500 |
|
| Experience | string |
None. |
|
| HourlyRate | string |
None. |
|
| CourseDomain | string |
None. |
|
| City | string |
None. |
|
| ImagePath | string |
None. |
|
| ImageArray | Collection of byte |
None. |
|
| UserId | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Language": "sample string 3",
"Nationality": "sample string 4",
"Gender": "sample string 5",
"Phone": "sample string 6",
"Email": "sample string 7",
"Education": "sample string 8",
"OneLineTitle": "sample string 9",
"Description": "sample string 10",
"Experience": "sample string 11",
"HourlyRate": "sample string 12",
"CourseDomain": "sample string 13",
"City": "sample string 14",
"ImagePath": "sample string 15",
"ImageArray": "QEA=",
"UserId": "sample string 16"
}
application/xml, text/xml
Sample:
<Instructor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeachifyApi.Models"> <City>sample string 14</City> <CourseDomain>sample string 13</CourseDomain> <Description>sample string 10</Description> <Education>sample string 8</Education> <Email>sample string 7</Email> <Experience>sample string 11</Experience> <Gender>sample string 5</Gender> <HourlyRate>sample string 12</HourlyRate> <Id>1</Id> <ImageArray>QEA=</ImageArray> <ImagePath>sample string 15</ImagePath> <Language>sample string 3</Language> <Name>sample string 2</Name> <Nationality>sample string 4</Nationality> <OneLineTitle>sample string 9</OneLineTitle> <Phone>sample string 6</Phone> <UserId>sample string 16</UserId> </Instructor>