Required role: | REGISUserRole |
POST | /Grades |
---|
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 GradesRequest
End Class
End Namespace
Namespace regis.ClassLibrary.Responses
Public Partial Class GradeResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property id As Integer
Public Overridable Property grade_code As String
Public Overridable Property grade_name As String
Public Overridable Property grade_points As Decimal
Public Overridable Property gpa_credit As Boolean
Public Overridable Property completed_credit As Boolean
End Class
Public Partial Class GradesResponse
Public Sub New()
grades = New List(Of GradeResponse)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property grades As List(Of GradeResponse)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Grades HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"grades":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"id":0,"grade_code":"String","grade_name":"String","grade_points":0,"gpa_credit":false,"completed_credit":false}]}