POST CourseSectionsAPI/AddCourseSection

Request Information

URI Parameters

None.

Body Parameters

CourseSections
NameDescriptionTypeAdditional information
pkCourseSectionID

integer

None.

CourseSectionID

string

None.

MaxStudents

integer

None.

pkCourseID

integer

None.

pkSemesterID

integer

None.

CourseName

string

None.

FullSectionNameStudent

string

None.

FullSectionNameFaculty

string

None.

NumStudents

integer

None.

NumTeachers

integer

None.

SemesterID

string

None.

CourseID

string

None.

NumSectionsToCreate

integer

None.

FacultyList

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pkCourseSectionID": 1,
  "CourseSectionID": "sample string 2",
  "MaxStudents": 3,
  "pkCourseID": 4,
  "pkSemesterID": 5,
  "CourseName": "sample string 6",
  "FullSectionNameStudent": "sample string 7",
  "FullSectionNameFaculty": "sample string 8",
  "NumStudents": 9,
  "NumTeachers": 10,
  "SemesterID": "sample string 11",
  "CourseID": "sample string 12",
  "NumSectionsToCreate": 13,
  "FacultyList": "sample string 14"
}

application/xml, text/xml

Sample:
<CourseSections xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <CourseID>sample string 12</CourseID>
  <CourseName>sample string 6</CourseName>
  <CourseSectionID>sample string 2</CourseSectionID>
  <FacultyList>sample string 14</FacultyList>
  <FullSectionNameFaculty>sample string 8</FullSectionNameFaculty>
  <FullSectionNameStudent>sample string 7</FullSectionNameStudent>
  <MaxStudents>3</MaxStudents>
  <NumSectionsToCreate>13</NumSectionsToCreate>
  <NumStudents>9</NumStudents>
  <NumTeachers>10</NumTeachers>
  <SemesterID>sample string 11</SemesterID>
  <pkCourseID>4</pkCourseID>
  <pkCourseSectionID>1</pkCourseSectionID>
  <pkSemesterID>5</pkSemesterID>
</CourseSections>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>