teacher_favorites

Add Favorite

Add a favorite. Resolves the target per SPEC §5 origin rule.

409 if this teacher has already favorited the same target (the partial unique indexes enforce this at the DB level too).

post/teacher-favorites

Request body

exercise_idstring required
exercise_type'public' | 'teacher' required

Response

Successful Response

idstring required
teacher_idstring required
subject'maths' | 'physique-chimie'
public_exercise_idstring nullable
teacher_exercise_idstring nullable
target_type'public' | 'teacher' required
added_atstring date-time required

Changes