POST api/Teacher/AddTeacher

Request Information

URI Parameters

None.

Body Parameters

Teacher
NameDescriptionTypeAdditional information
Id

integer

None.

RoleId

integer

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

MotherName

string

None.

DOB

string

None.

Gender

string

None.

IdNo

integer

None.

BloodGroup

string

None.

Religion

string

None.

Cast

string

None.

Category

string

None.

Email

string

None.

ClassId

integer

None.

Section

string

None.

Address

string

None.

JoiningDate

string

None.

Mobile

string

None.

ShortBio

string

None.

Photo

string

None.

CreatedBy

string

None.

CreatedDate

date

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RoleId": 2,
  "FirstName": "sample string 3",
  "MiddleName": "sample string 4",
  "LastName": "sample string 5",
  "MotherName": "sample string 6",
  "DOB": "sample string 7",
  "Gender": "sample string 8",
  "IdNo": 9,
  "BloodGroup": "sample string 10",
  "Religion": "sample string 11",
  "Cast": "sample string 12",
  "Category": "sample string 13",
  "Email": "sample string 14",
  "ClassId": 15,
  "Section": "sample string 16",
  "Address": "sample string 17",
  "JoiningDate": "sample string 18",
  "Mobile": "sample string 19",
  "ShortBio": "sample string 20",
  "Photo": "sample string 21",
  "CreatedBy": "sample string 22",
  "CreatedDate": "2024-12-01T08:17:07.9567752+05:30",
  "UpdatedBy": "sample string 24",
  "UpdatedDate": "2024-12-01T08:17:07.9567752+05:30"
}

application/octet-stream

Sample:
{"$id":"1","Id":1,"RoleId":2,"FirstName":"sample string 3","MiddleName":"sample string 4","LastName":"sample string 5","MotherName":"sample string 6","DOB":"sample string 7","Gender":"sample string 8","IdNo":9,"BloodGroup":"sample string 10","Religion":"sample string 11","Cast":"sample string 12","Category":"sample string 13","Email":"sample string 14","ClassId":15,"Section":"sample string 16","Address":"sample string 17","JoiningDate":"sample string 18","Mobile":"sample string 19","ShortBio":"sample string 20","Photo":"sample string 21","CreatedBy":"sample string 22","CreatedDate":"2024-12-01T08:17:07.9567752+05:30","UpdatedBy":"sample string 24","UpdatedDate":"2024-12-01T08:17:07.9567752+05:30"}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.