Required permission: | ReadSections |
POST | /Sections/Timetable/{reporting_term} |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class SectionsTimetableRequest
{
var reporting_term:String? = null
}
open class SectionsTimetableResponse
{
var responseStatus:ResponseStatus? = null
var term:String? = null
var notes:ArrayList<SectionTimetableNoteResponse> = ArrayList<SectionTimetableNoteResponse>()
var monday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var tuesday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var wednesday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var thursday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var friday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var saturday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
var sunday:ArrayList<SectionTimetableResponse> = ArrayList<SectionTimetableResponse>()
}
open class SectionTimetableNoteResponse
{
var heading:String? = null
var body:String? = null
}
open class SectionTimetableResponse
{
var time:String? = null
var sortTime:Int? = null
var course:String? = null
var courseSlug:String? = null
var desc:String? = null
var instructors:ArrayList<SectionTimetableInstructorResponse> = ArrayList<SectionTimetableInstructorResponse>()
var registrationInfo:String? = null
var room:String? = null
var creditMinimum:BigDecimal? = null
var creditMaximum:BigDecimal? = null
var auditMinimum:BigDecimal? = null
var auditMaximum:BigDecimal? = null
}
open class SectionTimetableInstructorResponse
{
var instructorName:String? = null
var instructorSlug:String? = null
}
Kotlin SectionsTimetableRequest DTOs
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 /Sections/Timetable/{reporting_term} HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"reporting_term":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"term":"String","notes":[{"heading":"String","body":"String"}],"monday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"tuesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"wednesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"thursday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"friday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"saturday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"sunday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}]}