**This is an old revision of the document!** ----
An Objective Student is created to assign an Objective to a Student. ===Object resources=== ^ Property ^ Type ^ Description ^ | reached | Boolean | Did the student went through the objective successfully? | | objective_id | Integer | Objective assigned | | student_id | Integer | Student who is assigned an objective | | memorize | Integer | 1 if it has to be memorized, 0 otherwise | | adaptive | Integer | 1 if it has to be learned, 0 otherwise | | deadline | Timestamp | Does it have to be memorized for a specific deadline? | ===Create (POST)=== ^ Method | POST | ^ URL | /objective_students | ==Parameters (*Requiered parameters)== ^ Property ^ Type ^ Description ^ | objective_id* | Integer | Objective assigned | | student_id* | Integer | Student who is assigned an objective | | memorize* | Boolean | TRUE if it has to be memorized, FALSE otherwise | | adaptive* | Boolean| TRUE if it has to be learned, FALSE otherwise | | deadline | Timestamp | Does it have to be memorized for a specific deadline? | ==Send the request (JSON input example)== <code> { objective_id: 1, student_id: 1 memorize: TRUE, adaptive: TRUE, deadline: 2017-06-25 08:00:00 } </code> ==Get the response (JSON output example)== <code> { id: 1, instance_id: 1, objective_id: 1, student_id: 1 memorize: TRUE, adaptive: TRUE, deadline: 2017-06-25 08:00:00, reached: false } </code> ===Fetch (GET)=== ^ Method | GET| ^ URL | /objective_students/{objective_student_id} | If no objective_student_id is provided it will fetch all the Objective Students for your instance.\\ If you do not know the objective_student_id, you can add the parameters objective_id and/or student_id, and send the following request: <code> { objective_id: 1, student_id: 1 } </code> ==Get the response (JSON output example)== <code> { id: 1, instance_id: 1, objective_id: 1, student_id: 1 memorize: TRUE, adaptive: TRUE, deadline: 2017-06-25 08:00:00, reached: false } </code> ===Fetch Objective Student by Student (GET)=== ^ Method | GET | ^ URL | /students/{student_id}/objective_students |