Required role: | REGISUserRole |
POST | /Grades |
---|
export class GradeResponse
{
public responseStatus: ResponseStatus;
public id: number;
public grade_code: string;
public grade_name: string;
public grade_points: number;
public gpa_credit: boolean;
public completed_credit: boolean;
public constructor(init?: Partial<GradeResponse>) { (Object as any).assign(this, init); }
}
export class GradesResponse
{
public responseStatus: ResponseStatus;
public grades: GradeResponse[];
public constructor(init?: Partial<GradesResponse>) { (Object as any).assign(this, init); }
}
export class GradesRequest
{
public constructor(init?: Partial<GradesRequest>) { (Object as any).assign(this, init); }
}
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}]}