@Igor Kudryk Question #1 What are the components of an HTTP request? - Endpoint - Request Type - Headers Question #2 What are the components of an HTTP response? - Headers - Status Code - Body (payload)Β Question #3 What are the 2 most popular payload formats? - JSON - XML Question #4 Explain JSON format in your own words. Give an example. It represents data as key-value pairs, similar to a Map in Apex. Each key must be a string (written in double quotes).Each value can be one of the following types: - String - Number - Boolean - Object - Array Example:{ "name" : "Manisha Lal", "city" : "Seattle", "email" : "
[email protected]", "skills" : ["Salesforce", "Apex", "Marketing Cloud"], "address": { "street" : "xyz 123 Street", "postal code" : "9867-038" } } Question #5 static final String ENDPOINT = 'https://735ef563-176d-431c-85ce-2cc07056ef03.mock.pstmn.io/payments/link'; static final String GETMETHOD = 'GET'; HttpRequest request = new HttpRequest(); request.setEndpoint(ENDPOINT); request.setMethod(GETMETHOD); Http http = new Http(); HttpResponse response = http.send(request); String responseBody = response.getBody(); Map<String, Object> responseAsMap = (Map<String, Object>) JSON.deserializeUntyped(responseBody); Map<String, Object> transactions = (Map<String, Object>) responseAsMap.get('transaction'); Map<String, Object> details = (Map<String, Object>) transactions.get('details'); String ipAddress = (String)details.get('IP'); System.debug(ipAddress);