Can you please advise on best way to consume a external REST API in SP2013. I receive JSON Web Token (JWT) as a response . Need to process the token.
Should i opt for farm solution (or) any other ways to develop it in SP2013. Any reference ould be greatly helpful. Thanks.

Md Tahmidul AbedinRank #443 · 5.7K reputationPosted Aug 3, 2017, 4:11 AM EDT
https://blog.portiva.nl/2015/01/15/calling-external-rest-service-from-a-sharepoint-hosted-app-using-the-web-proxy/