subhojit777 / questionnaire-backend

Real-time crowd survey application (Back-end)
http://subhojit777.in/questionnaire-backend/
MIT License
4 stars 2 forks source link

answers POST does not returns correct response #15

Closed subhojit777 closed 5 years ago

subhojit777 commented 5 years ago

Steps to reproduce:

  1. Do /answers POST and note the response
  2. Do another /answers POST
  3. You will notice that the is from responses in 1 and 2 are same
subhojit777 commented 5 years ago

In MySql there is no good way to retrieve the inserted row - https://github.com/diesel-rs/diesel/issues/1011

Therefore, I have decided that /answers POST is not going to return anything. The response will be 200 and an empty body, which means the answer has been successfully submitted.