Skip to content

Instantly share code, notes, and snippets.

@jsmithdev
Created June 26, 2020 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmithdev/ea08f96e352c56bf8aca85649ee38543 to your computer and use it in GitHub Desktop.
Save jsmithdev/ea08f96e352c56bf8aca85649ee38543 to your computer and use it in GitHub Desktop.
Apex REST Example
@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