Created
June 26, 2020 19:43
-
-
Save jsmithdev/ea08f96e352c56bf8aca85649ee38543 to your computer and use it in GitHub Desktop.
Apex REST Example
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
@RestResource(urlMapping='/RestService/*') | |
global with sharing class RestService { | |
@HttpPost | |
global static String wookiehookie(String data) { | |
System.debug(data); | |
return '"had_data": "' +data+ '"'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment