Required role: | REGISUserRole |
POST | /Grades |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GradesRequest
{
}
public static class GradesResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<GradeResponse> grades = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public GradesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<GradeResponse> getGrades() { return grades; }
public GradesResponse setGrades(ArrayList<GradeResponse> value) { this.grades = value; return this; }
}
public static class GradeResponse
{
public ResponseStatus responseStatus = null;
public Integer id = null;
public String grade_code = null;
public String grade_name = null;
public BigDecimal grade_points = null;
public Boolean gpa_credit = null;
public Boolean completed_credit = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public GradeResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getId() { return id; }
public GradeResponse setId(Integer value) { this.id = value; return this; }
public String getGradeCode() { return grade_code; }
public GradeResponse setGradeCode(String value) { this.grade_code = value; return this; }
public String getGradeName() { return grade_name; }
public GradeResponse setGradeName(String value) { this.grade_name = value; return this; }
public BigDecimal getGradePoints() { return grade_points; }
public GradeResponse setGradePoints(BigDecimal value) { this.grade_points = value; return this; }
public Boolean isGpaCredit() { return gpa_credit; }
public GradeResponse setGpaCredit(Boolean value) { this.gpa_credit = value; return this; }
public Boolean isCompletedCredit() { return completed_credit; }
public GradeResponse setCompletedCredit(Boolean value) { this.completed_credit = value; return this; }
}
}
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}]}