How to call an REST API to get data and passing the variables from API to apex method in Salesforce

Published --