POST api/AddUpdateTeacherSubject

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
TeacherSubjectList
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "TeacherSubjectID": 1,
    "UserID": 2,
    "SubjectID": 3,
    "TeacherName": "sample string 4",
    "Subject": "sample string 5"
  },
  {
    "TeacherSubjectID": 1,
    "UserID": 2,
    "SubjectID": 3,
    "TeacherName": "sample string 4",
    "Subject": "sample string 5"
  },
  {
    "TeacherSubjectID": 1,
    "UserID": 2,
    "SubjectID": 3,
    "TeacherName": "sample string 4",
    "Subject": "sample string 5"
  }
]

text/html

Sample:
[{"TeacherSubjectID":1,"UserID":2,"SubjectID":3,"TeacherName":"sample string 4","Subject":"sample string 5"},{"TeacherSubjectID":1,"UserID":2,"SubjectID":3,"TeacherName":"sample string 4","Subject":"sample string 5"},{"TeacherSubjectID":1,"UserID":2,"SubjectID":3,"TeacherName":"sample string 4","Subject":"sample string 5"}]

application/xml, text/xml

Sample:
<ArrayOfTeacherSubjectViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModels.Master">
  <TeacherSubjectViewModel>
    <Subject>sample string 5</Subject>
    <SubjectID>3</SubjectID>
    <TeacherName>sample string 4</TeacherName>
    <TeacherSubjectID>1</TeacherSubjectID>
    <UserID>2</UserID>
  </TeacherSubjectViewModel>
  <TeacherSubjectViewModel>
    <Subject>sample string 5</Subject>
    <SubjectID>3</SubjectID>
    <TeacherName>sample string 4</TeacherName>
    <TeacherSubjectID>1</TeacherSubjectID>
    <UserID>2</UserID>
  </TeacherSubjectViewModel>
  <TeacherSubjectViewModel>
    <Subject>sample string 5</Subject>
    <SubjectID>3</SubjectID>
    <TeacherName>sample string 4</TeacherName>
    <TeacherSubjectID>1</TeacherSubjectID>
    <UserID>2</UserID>
  </TeacherSubjectViewModel>
</ArrayOfTeacherSubjectViewModel>

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 'List`1'.