fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

Quiz update features #72

Closed fnitu closed 2 years ago

fnitu commented 3 years ago

Must have

Nice to have:

razvantudorache commented 3 years ago

Hi,

Two new field types have been added:

textarea_short textarea_big

razvantudorache commented 3 years ago

New types TEXTAREA_BIG and TEXTAREA_SHORT must be taken into consideration on server

error: "Bad Request" message: "JSON parse error: Cannot deserialize value of typero.siit.model.QuestionTypefrom String \"TEXTAREA_SHORT\": not one of the values accepted for Enum class: [CHECKBOXES, RADIO, SELECT]; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of typero.siit.model.QuestionTypefrom String \"TEXTAREA_SHORT\": not one of the values accepted for Enum class: [CHECKBOXES, RADIO, SELECT]\n at [Source: (PushbackInputStream); line: 1, column: 31] (through reference chain: ro.siit.payload.QuestionRequest[\"type\"])" path: "/api/admin/quizzes/questions/11/update" status: 400 timestamp: 1638296211609

Adrian-Moldovan commented 2 years ago

The expected payload for the settings property should be an array of objects (just like the options property)

"settings": [ { "name": "string", "value": "string" } ]

Please check out the swagger documentation: https://edu-hospice-api.herokuapp.com/swagger-ui.html#/quiz-controller/updateQuestionUsingPUT

razvantudorache commented 2 years ago

All points from description have been implemented.