Required permission: | ReadClassRosters |
POST | /ClassRoster/{reporting_term} | ||
---|---|---|---|
POST | /ClassRoster/{reporting_term}/{section_uuid} |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ClassRosterRequest implements IConvertible
{
String? reporting_term;
String? section_uuid;
ClassRosterRequest({this.reporting_term,this.section_uuid});
ClassRosterRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
reporting_term = json['reporting_term'];
section_uuid = json['section_uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'reporting_term': reporting_term,
'section_uuid': section_uuid
};
getTypeName() => "ClassRosterRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'ClassRosterRequest': TypeInfo(TypeOf.Class, create:() => ClassRosterRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ClassRoster/{reporting_term} HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"reporting_term":"String","section_uuid":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"course_name":"String","section_uuid":"String","section_code":"String","course_title":"String","room":"String","start_date":"0001-01-01T00:00:00.0000000","end_date":"0001-01-01T00:00:00.0000000","first_meeting_date":"0001-01-01T00:00:00.0000000","last_meeting_date":"0001-01-01T00:00:00.0000000","meeting_days":"String","start_times":"String","end_times":"String","capacity":0,"term":"String","reporting_term":"String","has_required_documents":false,"instructors":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"regent_login":"String","preferred_name":"String","first_name":"String","last_name":"String","full_name":"String","email":"String","image_base64":"String"}],"registrations":[{"regent_id":0,"uuid":"String","regent_login":"String","first_name":"String","preferred_name":"String","middle_name":"String","last_name":"String","email":"String","phone_home":"String","phone_cell":"String","phone_bus":"String","academic_program":"String","academic_concentration":"String","amount":0,"is_credit":false,"is_audit":false,"is_provisional":false,"additional_instructors":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"regent_login":"String","preferred_name":"String","first_name":"String","last_name":"String","full_name":"String","email":"String","image_base64":"String"}],"documents":[{"uuid":"String","regent_id":0,"first_name":"String","last_name":"String","gender":"String","email":"String","program":"String","concentration":"String","section_uuid":"String","course_name":"String","course_title":"String","reporting_term":"String","document_code":"String","document_json":"String","document_name":"String","document_description":"String","added_date":"0001-01-01T00:00:00.0000000","changed_date":"0001-01-01T00:00:00.0000000"}],"date":"0001-01-01T00:00:00.0000000"}]}]