Wednesday 22 April 2020

How to test basic API with curl?

I have an index.js and queries.js set up on my Express API on ec2. I'm 90% sure my queries.js is set up correctly.This is the contents of my index.js: https://pastebin.com/i5Ess9LXHow would I go about testing -- I guess with the curl command first -- whether the getUsers etc. commands work correctly?curl myec2url.com:3000/getUsersSomething like that?

Submitted April 23, 2020 at 06:07AM by LevelChart8

No comments:

Post a Comment