api/challenges/feedback

This file contains the functions that are needed to interact with the ITSLanguage Feedback API.

Source:

Members

(inner, constant) url :string

Source:

The URL for the feedback challenge handler(s).

Type:
  • string

Methods

(static) create(feedback) → {Promise}

Source:

Create new feedback.

Parameters:
Name Type Description
feedback Object

The feedback to create.

Returns:
  • The feedback creation promise.
Type
Promise

(static) getAll() → {Promise}

Source:

Get all feedback. It will only return feedback that the user may see. Feedback can only be get by the owning user or by a user with the TEACHER role.

Returns:
  • The promise for the feedback challenges.
Type
Promise

(static) getById(id) → {Promise}

Source:
See:

Get a single feedback challenge by its ID. Feedback can only be get by the owning user or by a user with the TEACHER role.

Parameters:
Name Type Description
id string

The ID of the desired feedback challenge to get.

Returns:
  • The promise for the feedback challenge.
Type
Promise