Creating simple Routes using Express.JS and checking the API using POSTMAN

Creating simple Routes using Express.JS and checking the API using POSTMAN

Here you can see I have used express to create a simple webserver and create API routes which aren't doing anything specific but this is a good way to check if they are working using POSTMAN or Thunder Client in Visual Studio. Also, I have used a middleware to console log the id and the hostname but this will go into indefinite loop since I haven't used the next method in the above snippet.

To view or add a comment, sign in

More articles by Sagar Gola

  • Building RESTful API's using Express

    Creating Routes/Endpoints REST API's Using express JS and using GET, PUT, POST, DELETE methods and testing them with…

Insights from the community

Others also viewed

Explore topics