ConsiderIf you want to test belowthe REST API below:
@RestResource (urlMapping='/wte/test/*') global class WTE_SampleRESTService { @HttpGet global static void doGet() { String id = RestContext.request.params.get('id'id'); System.debug('ID: '+ id); } @HttpPost global static void doPost(String id, String name) { System.debug('ID: '+id+', Name: '+name); } } You can use Workbench or curl.
above image shows Testing using Workbench
This post might be very helpful for you.
