You need to sign in to do that
Don't have an account?
pranab 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.
The end point is https://pranab-dev-ed.my.salesforce.com/services/apexrest/hello?name=hellooo
@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