POST ./teme/solutie
Used only by the student to add a solution to a homework.
Solutions are uploaded using ./fisiere/upload with fsTip = 4
POST parameters
Name | Value Type | Validation | Details |
---|---|---|---|
elevID | int | Required | Student ID. |
hwID | int | Required | Homework ID. |
hwSolutions[] | array(int) | Required | Array with the file ids that will be attached to the homework. |
Validation
Error Field | Error Code | Error Message |
---|---|---|
hwID | 101 | Invalid homework ID or student has no associated the homework. |
hwSolutions[] | 102 | One or more attachments are invalid. |
Output example
{"result":true,"hwsa":[{"hwsaID":416,"fsID":"1905"},{"hwsaID":417,"fsID":"1906"},{"hwsaID":418,"fsID":"1907"}]}