-
-
Save TheShubhamVsnv/edba29ad077f136702d938ad5f67302e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the HTTP GET method to retrieve contacts | |
@HttpGet | |
global static List<Contact> getContacts() { | |
// Retrieve specific fields for up to 10 contacts | |
return [SELECT Id, Name, Email, Phone FROM Contact LIMIT 10]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment