Newer Version Available
Apex REST Code Samples
These code samples show you how to expose Apex classes and methods through the REST architecture and how to call those resources from a client.
- Apex REST Basic Code Sample: Provides an example of an Apex REST class with three methods that you can call to delete a record, get a record, and update a record.
- Apex REST Code Sample Using RestRequest: Provides an example of an Apex REST class that adds an attachment to a record by using the RestRequest object