Required permission: | ReadSections |
POST | /Sections/Timetable/{reporting_term} |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.ClassLibrary.Requests;
using regis.ClassLibrary.Responses;
namespace regis.ClassLibrary.Requests
{
public partial class SectionsTimetableRequest
{
public virtual string reporting_term { get; set; }
}
}
namespace regis.ClassLibrary.Responses
{
public partial class SectionsTimetableResponse
{
public SectionsTimetableResponse()
{
Notes = new List<SectionTimetableNoteResponse>{};
Monday = new List<SectionTimetableResponse>{};
Tuesday = new List<SectionTimetableResponse>{};
Wednesday = new List<SectionTimetableResponse>{};
Thursday = new List<SectionTimetableResponse>{};
Friday = new List<SectionTimetableResponse>{};
Saturday = new List<SectionTimetableResponse>{};
Sunday = new List<SectionTimetableResponse>{};
}
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string Term { get; set; }
public virtual List<SectionTimetableNoteResponse> Notes { get; set; }
public virtual List<SectionTimetableResponse> Monday { get; set; }
public virtual List<SectionTimetableResponse> Tuesday { get; set; }
public virtual List<SectionTimetableResponse> Wednesday { get; set; }
public virtual List<SectionTimetableResponse> Thursday { get; set; }
public virtual List<SectionTimetableResponse> Friday { get; set; }
public virtual List<SectionTimetableResponse> Saturday { get; set; }
public virtual List<SectionTimetableResponse> Sunday { get; set; }
}
public partial class SectionTimetableInstructorResponse
{
public virtual string InstructorName { get; set; }
public virtual string InstructorSlug { get; set; }
}
public partial class SectionTimetableNoteResponse
{
public virtual string Heading { get; set; }
public virtual string Body { get; set; }
}
public partial class SectionTimetableResponse
{
public SectionTimetableResponse()
{
Instructors = new List<SectionTimetableInstructorResponse>{};
}
public virtual string Time { get; set; }
public virtual int? SortTime { get; set; }
public virtual string Course { get; set; }
public virtual string CourseSlug { get; set; }
public virtual string Desc { get; set; }
public virtual List<SectionTimetableInstructorResponse> Instructors { get; set; }
public virtual string RegistrationInfo { get; set; }
public virtual string Room { get; set; }
public virtual decimal CreditMinimum { get; set; }
public virtual decimal CreditMaximum { get; set; }
public virtual decimal AuditMinimum { get; set; }
public virtual decimal AuditMaximum { get; set; }
}
}
C# 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}]}