avaliabrasil/avalia-brasil

ap.avaliabrasil.org/survey response misformatted

Closed this issue · 2 comments

Post to:
http://api.avaliabrasil.org/survey/ChIJq-Kf4E9oGZURb5ZntqzExRA

With this body:
{"userId":"1","newPlace":false,"answers":[{"questionId":"1","questionType":"likert","answer":"3"},{"questionId":"2","questionType":"likert","answer":"3"},{"questionId":"1","questionType":"likert","answer":"5"},{"questionId":"2","questionType":"likert","answer":"4"},{"questionId":"3","questionType":"likert","answer":"5"},{"questionId":"4","questionType":"likert","answer":"4"},{"questionId":"5","questionType":"likert","answer":"4"},{"questionId":"6","questionType":"likert","answer":"5"},{"questionId":"7","questionType":"likert","answer":"4"},{"questionId":"8","questionType":"likert","answer":"5"},{"questionId":"9","questionType":"likert","answer":"4"},{"questionId":"10","questionType":"likert","answer":"2"},{"questionId":"11","questionType":"likert","answer":"3"},{"questionId":"12","questionType":"likert","answer":"4"},{"questionId":"13","questionType":"likert","answer":"3"},{"questionId":"14","questionType":"likert","answer":"3"},{"questionId":"15","questionType":"likert","answer":"4"},{"questionId":"16","questionType":"likert","answer":"3"},{"questionId":"17","questionType":"likert","answer":"4"},{"questionId":"18","questionType":"likert","answer":"3"},{"questionId":"19","questionType":"likert","answer":"4"},{"questionId":"20","questionType":"likert","answer":"4"},{"questionId":"21","questionType":"likert","answer":"3"},{"questionId":"22","questionType":"likert","answer":"4"},{"questionId":"23","questionType":"comment","answer":"teste"}]}

Is getting this response:

Eu avaliei o local: Sao leopoldo. Na minha avaliação, o Índice de Qualidade deste local é 60.41666665. O Índice de Qualidade Atual é 58.69565215. Baixe o aplicativo Avalia Brasil e avalie também.

When it should be:
Eu avaliei o local: Sao leopoldo. Na minha avaliação, o Índice de Qualidade deste local é 60,41%. O Índice de Qualidade Atual é 58,69 %. Baixe o aplicativo Avalia Brasil e avalie também.

The following post is not returning the text to be shared, crashing the app.

POST: http://api.avaliabrasil.org/survey/ChIJQwo8MFhoGZURt8i6DTuGA2E

{"userId":"1","newPlace":false,"answers":[{"questionId":"1","questionType":"likert","answer":"4"},{"questionId":"2","questionType":"likert","answer":"4"},{"questionId":"3","questionType":"likert","answer":"5"},{"questionId":"4","questionType":"likert","answer":"5"},{"questionId":"5","questionType":"likert","answer":"5"},{"questionId":"6","questionType":"likert","answer":"5"},{"questionId":"7","questionType":"likert","answer":"5"},{"questionId":"8","questionType":"likert","answer":"5"},{"questionId":"9","questionType":"likert","answer":"5"},{"questionId":"10","questionType":"likert","answer":"5"},{"questionId":"11","questionType":"likert","answer":"5"},{"questionId":"12","questionType":"likert","answer":"1"},{"questionId":"13","questionType":"likert","answer":"1"},{"questionId":"14","questionType":"likert","answer":"1"},{"questionId":"15","questionType":"likert","answer":"1"},{"questionId":"16","questionType":"likert","answer":"1"},{"questionId":"17","questionType":"likert","answer":"1"},{"questionId":"18","questionType":"likert","answer":"1"},{"questionId":"19","questionType":"likert","answer":"1"},{"questionId":"20","questionType":"likert","answer":"1"},{"questionId":"21","questionType":"likert","answer":"1"},{"questionId":"22","questionType":"likert","answer":"1"},{"questionId":"23","questionType":"comment","answer":"boma"}]}

Tested now, passing.