User feedback per question #102
Comments
@maxsv0 look at this, i could build this as a custom component https://www.cssscript.com/demo/simple-5-star-rating-system-with-css-and-html-radios/, it works with fontawesome. Do we need a new endpoint for this or how do you imagine this working for the backend? |
I created the basic rating component for test result, when you can, you can create the api endpoint for it: this would be my request body, what do you think?
if user has already rated the question, rated would just be true and couldn't submit rating again |
API is not ready yet, I'll update when available. method POST, Content-Type: application/json, user token is required. example body:
|
@maxsv0 okay i understand, so a user should be able to rate the same question again even when he might have already. how would the successful API response look like? |
I think status code 200 is enough. |
@maxsv0 great, let me know when it's ready 👍 I have the frontend pretty much ready to go |
@Aisangon API updated, please try |
Provide a possibility for the user to vote for the quality of questions of a test that he has passed.
I don't think there is a need to display this rating on the website right now, it's mostly to determine questions quality and to change questions database accordingly.
The text was updated successfully, but these errors were encountered: