Consistently use JSON marshaling/demarshaling for REST resources

Description

The LearnerRecord REST resource uses JAXBElement to marshaling JSON into a GradeRecord object. This needs to be changed to consistently use our fromJson() util method. Also, a lot of resources used annotations like:

@Consumes({"application/xml", "application/json"})

... which just needs to change to:

@Consumes("application/json")

We also need to remove the "@XmlRootElement" annotation from the GradeRecord class.

Activity

Show:

David Woods December 2, 2011 at 4:09 PM

QA Test

regression testing covered this.

QA Pass

Thomas Amsler November 18, 2011 at 2:54 PM

QA Test Plan:

Use the "Student Summary" page to enter and changes Scores, Comments, and Excuses. Make sure that all the data is created and persisted between reloading the gradebook.

Fixed

Details

Assignee

Reporter

QA Status

PASS

Components

Fix versions

Affects versions

Priority

Created November 18, 2011 at 2:40 PM
Updated December 2, 2011 at 4:10 PM
Resolved November 18, 2011 at 2:48 PM