I am trying to make a REST call with method as GET and body included . This call works fine from POSTMAN however from salesforce the call at server is received as POST call.
Can i make any change in request so that it is accepted as GET call only at server.
Below is my code.
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setHeader('Token', 'Bearer aejjxyzxyzhId0');
req.setHeader('Content-Type', 'application/json');
req.setEndpoint('https://serverurl.com/xyz/apis/abc/pqr/');
req.setBody('{"employee_id": 66781}');
req.setMethod('GET');
httpResponse res = h.send(req);
system.debug(res.getBody());