Wednesday, May 10, 2017

Rest Web Service Apex Code Sample (Web Method contains parameters).

Below is a simple example of a rest web service (RestWSSampleWithParam) with a web method (getRestSampleResponse)contains parameters.

/**
 * Rest Web Service Example.
 **/
 @RestResource(urlMapping='/RestWSSampleParamExmpl/*')
global with sharing class RestWSSampleWithParam
{
  @HttpPost
  global static String getRestSampleResponse(String firstName, String lastName)
  {
    return 'Hello! ' + firstName + ' ' + lastName;
  }
}

LWC to LWC Communication using Lightning Messaging Service (Part - 2)

In my previous post ( previous post link ) we have learn how to create a Lightning Messaging Service with 6 steps and today we will use the ...