简体   繁体   中英

Can node js make a restful service call

Is it possible for a node js application to make a call to another web application on Tomcat with a restful service call?

Regards

Yes, a node.js application can do any sort of networking you would like including make a REST call to another server.

The request module makes this particularly easy, though it can also be done with just the plain http module with a bit more coding.

References:

How to make remote REST call inside Node.js? any CURL?

Calling a REST API from a NodeJS Script

Using Node.js to connect to a REST API

Calling REST API with node.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM