POST api/v{version}/Attendance/CalculateDesiredAttendance

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

AttendanceCalculator
NameDescriptionTypeAdditional information
DesiredAttendance

string

None.

StudId

string

None.

FromDate

string

None.

ToDate

string

None.

SubjectId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DesiredAttendance": "sample string 1",
  "StudId": "sample string 2",
  "FromDate": "sample string 3",
  "ToDate": "sample string 4",
  "SubjectId": "sample string 5"
}

application/xml, text/xml

Sample:
<AttendanceCalculator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <DesiredAttendance>sample string 1</DesiredAttendance>
  <FromDate>sample string 3</FromDate>
  <StudId>sample string 2</StudId>
  <SubjectId>sample string 5</SubjectId>
  <ToDate>sample string 4</ToDate>
</AttendanceCalculator>

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

Response Information

Resource Description

AttendanceCalculator
NameDescriptionTypeAdditional information
DesiredAttendance

string

None.

StudId

string

None.

FromDate

string

None.

ToDate

string

None.

SubjectId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DesiredAttendance": "sample string 1",
  "StudId": "sample string 2",
  "FromDate": "sample string 3",
  "ToDate": "sample string 4",
  "SubjectId": "sample string 5"
}

application/xml, text/xml

Sample:
<AttendanceCalculator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <DesiredAttendance>sample string 1</DesiredAttendance>
  <FromDate>sample string 3</FromDate>
  <StudId>sample string 2</StudId>
  <SubjectId>sample string 5</SubjectId>
  <ToDate>sample string 4</ToDate>
</AttendanceCalculator>