regis

<back to all web services

SectionsTimetableRequest

Requires Authentication
Required permission:ReadSections
The following routes are available for this service:
POST/Sections/Timetable/{reporting_term}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports regis.ClassLibrary.Requests
Imports regis.ClassLibrary.Responses

Namespace Global

    Namespace regis.ClassLibrary.Requests

        Public Partial Class SectionsTimetableRequest
            Public Overridable Property reporting_term As String
        End Class
    End Namespace

    Namespace regis.ClassLibrary.Responses

        Public Partial Class SectionsTimetableResponse
            Public Sub New()
                Notes = New List(Of SectionTimetableNoteResponse)
                Monday = New List(Of SectionTimetableResponse)
                Tuesday = New List(Of SectionTimetableResponse)
                Wednesday = New List(Of SectionTimetableResponse)
                Thursday = New List(Of SectionTimetableResponse)
                Friday = New List(Of SectionTimetableResponse)
                Saturday = New List(Of SectionTimetableResponse)
                Sunday = New List(Of SectionTimetableResponse)
            End Sub

            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Term As String
            Public Overridable Property Notes As List(Of SectionTimetableNoteResponse)
            Public Overridable Property Monday As List(Of SectionTimetableResponse)
            Public Overridable Property Tuesday As List(Of SectionTimetableResponse)
            Public Overridable Property Wednesday As List(Of SectionTimetableResponse)
            Public Overridable Property Thursday As List(Of SectionTimetableResponse)
            Public Overridable Property Friday As List(Of SectionTimetableResponse)
            Public Overridable Property Saturday As List(Of SectionTimetableResponse)
            Public Overridable Property Sunday As List(Of SectionTimetableResponse)
        End Class

        Public Partial Class SectionTimetableInstructorResponse
            Public Overridable Property InstructorName As String
            Public Overridable Property InstructorSlug As String
        End Class

        Public Partial Class SectionTimetableNoteResponse
            Public Overridable Property Heading As String
            Public Overridable Property Body As String
        End Class

        Public Partial Class SectionTimetableResponse
            Public Sub New()
                Instructors = New List(Of SectionTimetableInstructorResponse)
            End Sub

            Public Overridable Property Time As String
            Public Overridable Property SortTime As Nullable(Of Integer)
            Public Overridable Property Course As String
            Public Overridable Property CourseSlug As String
            Public Overridable Property Desc As String
            Public Overridable Property Instructors As List(Of SectionTimetableInstructorResponse)
            Public Overridable Property RegistrationInfo As String
            Public Overridable Property Room As String
            Public Overridable Property CreditMinimum As Decimal
            Public Overridable Property CreditMaximum As Decimal
            Public Overridable Property AuditMinimum As Decimal
            Public Overridable Property AuditMaximum As Decimal
        End Class
    End Namespace
End Namespace

VB.NET SectionsTimetableRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	reporting_term: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	]
}