{
"account_id": 12,
"exercice_id": 2,
"id": 2
}
{
"create_timestamp": 1465981217540,
"user_exercice_id": 2,
"modify_timestamp": 1465981217540,
"id": 2,
"content": "#include <stdio.h>\n \nint main()\n{\n printf(\"Hello world\\n\");\n return 0;\n}",
"name": "file.txt"
}
{
"user_exercice_id": 1,
"id": 2,
"value": 10,
"timestamp": 1465981188313
}
{
"user_exercice_id": 1,
"id": 2,
"content": "test",
"timestamp": 1465981262675
}
Returns the list of user_exercise objects linked to the authenticated user
{
"path": "/user_exercises",
"code": 200,
"method": "GET",
"data": [
{
"account_id": 12,
"exercice_id": 2,
"id": 2
},
{
"account_id": 12,
"exercice_id": 3,
"id": 3
},
{
"account_id": 12,
"exercice_id": 1,
"id": 4
}
],
"error": "OK",
"timestamp": 1466865844298
}
Returns the user_exercise object linked to the connected user pointing to the exercise parametre
{
"path": "/user_exercise/{id}",
"code": 200,
"method": "GET",
"data": [
{
"account_id": 12,
"exercice_id": 1,
"id": 4
}
],
"error": "OK",
"timestamp": 1466865926781
}
{
"user_exercice_id": 1,
"id": 2,
"content": "test",
"timestamp": 1465981262675
}
{
"create_timestamp": 1465981217540,
"user_exercice_id": 2,
"modify_timestamp": 1465981217540,
"id": 2,
"content": "#include <stdio.h>\n \nint main()\n{\n printf(\"Hello world\\n\");\n return 0;\n}",
"name": "file.txt"
}
{
"user_exercice_id": 1,
"id": 2,
"value": 10,
"timestamp": 1465981188313
}
{
"path": "{Path}",
"code": 200,
"method": "POST",
"id": 1, ==> Identite de l'objet insere
"error": "OK",
"timestamp": 1465916194498
}
Ajoute une entree
{
"account_id": 12,
"exercice_id": 1
}
Ajoute un fichier de code
{
"user_exercice_id": 2,
"content": "#include <stdio.h>\n \nint main()\n{\n printf(\"Hello world\\n\");\n return 0;\n}",
"name": "file.txt"
}
Ajoute une note
{
"user_exercice_id": 1,
"value": 10
}
Ajoute un log d'execution
{
"user_exercice_id": 1,
"content": "test"
}
{
"path": "{Path}",
"code": 200,
"method": "PUT",
"error": "OK",
"timestamp": 1465916194498
}
Modifie une entree
{
"id": 1,
"account_id": 12,
"exercice_id": 1
}
Modifie un fichier de code
{
"id": 1,
"user_exercice_id": 2,
"content": "#include <stdio.h>\n \nint main()\n{\n printf(\"Hello world\\n\");\n return 0;\n}",
"name": "file.txt"
}
Modifie une note
{
"id": 1,
"user_exercice_id": 1,
"value": 10
}
Modifie un log d'execution
{
"id": 1,
"user_exercice_id": 1,
"content": "test"
}
{
"path": "{Path}",
"code": 200,
"method": "DELETE",
"error": "OK",
"timestamp": 1465916194498
}