function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pranab khatuapranab khatua 

Help for REST API

I am new in REST API. I created one demo REST Apex Class. How will I test for this are working or not? Please anyone can help how to test it.
 
@RestResource(urlMapping='/hello')
global with sharing class WebServices {
    
@HttpGet  
  global static String createNewCase() {
    String name = RestContext.request.params.get('name');
    Project__c p = new Project__c(name = name); 
    insert p;
   return  name ;
  }

    
}

The end point is https://pranab-dev-ed.my.salesforce.com/services/apexrest/hello?name=hellooo