DEV Community

Discussion on: Building Simple REST API with Express.js and MySQL

Collapse
 
akapesh profile image
akapesh

@nurofsun this has really helped alot but i used a different approach with curl to achieve a similar output check it out
curl -v -u " : " "localhost:4040/users/new" -H "Content-Type:application/json" -d '{"name":"Pesh","gender":"female"}'
i am new to curl so thank you for introducing it to me. Kudos..