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

NameValue TypeValidationDetails
elevIDintRequiredStudent ID.
hwIDintRequiredHomework ID.
hwSolutions[]array(int)RequiredArray with the file ids that will be attached to the homework.

Validation

Error FieldError CodeError Message
hwID101Invalid homework ID or student has no associated the homework.
hwSolutions[]102One or more attachments are invalid.

Output example

{
"result":true,
"hwsa":[
{"hwsaID":416,"fsID":"1905"},
{"hwsaID":417,"fsID":"1906"},
{"hwsaID":418,"fsID":"1907"}
]
}