Please le me know is the right way do or please guide me
@RestResource(urlMapping='/sample/approvalnotifications')
global without sharing class Rest_Approval_Notification {
@HttpGet
global static void doGet() {
System.debug(RestContext.request.requestBody);
restresponse res=restcontext.response;
String notification_id = RestContext.request.params.get('id');
String notification_status = RestContext.request.params.get('status');
System.debug(notification_id);
System.debug(notification_status);
//hadling error code and logic for processing
}
}
4 respuestas
Hi Amit , Thank you .I cheked that using this test method and postmal as well. it seems woking I have question on this folowwing and how do i use the paarameter for this [&result_type={result}]. parynot undestanding properly. http://example.com/notif?id={id}&status=resulted[&result_type={result}]