POST api/StaffAttendance/SaveAttendance

Request Information

URI Parameters

None.

Body Parameters

SaveAttendance
NameDescriptionTypeAdditional information
classSectionInstituteYearId

integer

None.

students

Collection of SaveAttendanceStudent

None.

Request Formats

application/json, text/json

Sample:
{
  "classSectionInstituteYearId": 1,
  "students": [
    {
      "rollNumber": "sample string 1",
      "studentName": "sample string 2",
      "isPresent": true
    },
    {
      "rollNumber": "sample string 1",
      "studentName": "sample string 2",
      "isPresent": true
    }
  ]
}

text/html

Sample:
{"classSectionInstituteYearId":1,"students":[{"rollNumber":"sample string 1","studentName":"sample string 2","isPresent":true},{"rollNumber":"sample string 1","studentName":"sample string 2","isPresent":true}]}

application/xml, text/xml

Sample:
<StaffAttendanceModels.SaveAttendance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartInstituteSoftware.Models">
  <classSectionInstituteYearId>1</classSectionInstituteYearId>
  <students>
    <StaffAttendanceModels.SaveAttendanceStudent>
      <isPresent>true</isPresent>
      <rollNumber>sample string 1</rollNumber>
      <studentName>sample string 2</studentName>
    </StaffAttendanceModels.SaveAttendanceStudent>
    <StaffAttendanceModels.SaveAttendanceStudent>
      <isPresent>true</isPresent>
      <rollNumber>sample string 1</rollNumber>
      <studentName>sample string 2</studentName>
    </StaffAttendanceModels.SaveAttendanceStudent>
  </students>
</StaffAttendanceModels.SaveAttendance>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.