fixed $quiz with $id
added api rest call