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.

要查看或添加评论,请登录

Sagar Gola的更多文章

  • Building RESTful API's using Express

    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…

社区洞察

其他会员也浏览了