DEV Community

Discussion on: Designing a better architecture for a Node.js API

Collapse
 
javamhan profile image
Norbin Astrero

Hi can you help me test the API using insomia.
What would be my URL for POST?

Thanks in advance!

Thread Thread
 
pacheco profile image
Thiago Pacheco

Hi Norbin,

You can test the app sending a post request to localhost:5000/api/post

Thread Thread
 
javamhan profile image
Norbin Astrero

Yes done i've already did that, I also tried localhost:5000/api/getAll.

Im getting error below.

Cannot POST /api/post
Cannot GET /api/getAll