External REST APi call

0 votes

Can i make external REST API call from appwarps2 server? How can i achieve this? Can you please provide an example code.

asked Feb 9, 2017 in AppWarpS2 by Sallu Salman (10 points)

1 Answer

0 votes

Hi Salman,

Greetings from ShepHertz!!!!

Yes, you can make an external Rest API cal from AppWarpS2 server. You can call same it in async way means in a new Thread.

There are many ways to achieve this, you can go through with the following tutorials

  1. https://www.javacodegeeks.com/2012/09/simple-rest-client-in-java.html
  2. http://www.java2blog.com/2016/07/how-to-send-http-request-getpost-in-java.html
  3. https://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/

Let me know if more queries are concern.


Vishnu Garg

answered Feb 9, 2017 by Vishnu Garg (674 points)
edited Feb 9, 2017 by Vishnu Garg
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com