POST SemestersAPI/AddSemester

Request Information

URI Parameters

None.

Body Parameters

Semesters
NameDescriptionTypeAdditional information
pkSemesterID

integer

None.

IsCurrentSemester

boolean

None.

SemesterID

string

None.

ClassEndDate

date

None.

ClassEndDateStr

string

None.

ClassStartDate

date

None.

ClassStartDateStr

string

None.

FeePlanID

integer

None.

FeePlanName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pkSemesterID": 1,
  "IsCurrentSemester": true,
  "SemesterID": "sample string 3",
  "ClassEndDate": "2021-01-27T20:32:21.8746653+00:00",
  "ClassEndDateStr": "sample string 5",
  "ClassStartDate": "2021-01-27T20:32:21.8746653+00:00",
  "ClassStartDateStr": "sample string 7",
  "FeePlanID": 8,
  "FeePlanName": "sample string 9"
}

application/xml, text/xml

Sample:
<Semesters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <ClassEndDate>2021-01-27T20:32:21.8746653+00:00</ClassEndDate>
  <ClassEndDateStr>sample string 5</ClassEndDateStr>
  <ClassStartDate>2021-01-27T20:32:21.8746653+00:00</ClassStartDate>
  <ClassStartDateStr>sample string 7</ClassStartDateStr>
  <FeePlanID>8</FeePlanID>
  <FeePlanName>sample string 9</FeePlanName>
  <IsCurrentSemester>true</IsCurrentSemester>
  <SemesterID>sample string 3</SemesterID>
  <pkSemesterID>1</pkSemesterID>
</Semesters>

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

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>