const axios = require('axios'); axios.post('http://localhost:3000/dolgozok', { id: 4, "fullname": "Bárány Tamás", "city": "Miskolc", "salary": 2850000 }).then(resp => { console.log(resp.data); }).catch(error => { console.log(error); });