Required role: | REGISUserRole |
POST | /Grades |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GradesRequest
{
}
open class GradesResponse
{
var responseStatus:ResponseStatus? = null
var grades:ArrayList<GradeResponse> = ArrayList<GradeResponse>()
}
open class GradeResponse
{
var responseStatus:ResponseStatus? = null
var id:Int? = null
var grade_code:String? = null
var grade_name:String? = null
var grade_points:BigDecimal? = null
var gpa_credit:Boolean? = null
var completed_credit:Boolean? = null
}
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}]}