POST /examiner/restfulsimplifiedstaticfeedback/

Create a Static feedback.

The underlying data model where the item is created is defined in devilry.apps.core.models.StaticFeedback. The Simplified API that the server forwards this request to is devilry.apps.examiner.simplified.SimplifiedStaticFeedback.create().

Request

Example

POST /examiner/restfulsimplifiedstaticfeedback/

{
    grade: "My example value",
    rendered_view: "myvalue",
    delivery: 15,
    points: 20,
    is_passing_grade: true
}

Required request parameters

The following request parameters are encoded as a JSON object and sent as the request body as shown in the example above.

grade

Actual location of the field:
devilry.apps.core.models.StaticFeedback
About the field:
The rendered grade, such as “A” or “approved”.
Type
String

rendered_view

Actual location of the field:
devilry.apps.core.models.StaticFeedback
About the field:
A rendered HTML version of the feedback, containing whatever the grade-editor chose to dump in this field.
Type
String

delivery

Actual location of the field:
devilry.apps.core.models.Delivery
About the field:
Autogenerated identifier.
Type
Integer

points

Actual location of the field:
devilry.apps.core.models.StaticFeedback
About the field:
Number of points given on this feedback.
Type
Integer

is_passing_grade

Actual location of the field:
devilry.apps.core.models.StaticFeedback
About the field:
Is this a passing grade?
Type
Boolean

Response

On success

Example

201 CREATED

{
    grade: "My example value",
    rendered_view: "myvalue",
    delivery: 15,
    points: 20,
    is_passing_grade: true,
    id: 15
}

Success response details

As long as the Static feedback is created without an error, the response is HTTP 201 with the requested data in the body. The result always contains the request data with the id field added, however some values may have been changed due to logic performed on the server before saving.

On error

On errors, we respond with one of the HTTP Error status codes.