Olá. Não consigo fazer o insert, mas quando pego o retorno da query e executo direto no mysql, funciona.
E eu caio no erro do pagamentoDAO.salva.
curl http://localhost:3000/pagamentos/pagamento -v -H "Content-type: application/json" -d @files/pagamento.json Trying ::1... TCP_NODELAY set * Connected to localhost (::1) port 3000 (#0)
POST /pagamentos/pagamento HTTP/1.1 Host: localhost:3000 User-Agent: curl/7.60.0 Accept: / Content-type: application/json Content-Length: 115
- upload completely sent off: 115 out of 115 bytes
- Empty reply from server
- Connection #0 to host localhost left intact curl: (52) Empty reply from server