SalesforceTrailhead
  • Today
© 2026 Salesforce, Inc. All rights reserved. Privacy Terms of Use Trust Accessibility Cookie Preferences
Apex Integration Services

Apex Web Services

+700 Points~35 minsHands-On ChallengeCompleted
Apex Integration ServicesApex Web Services

Org:Mindful Goat Playground

Topics

  • Concepts
  • Hands-On Challenge

Looking for help?

Explore Help ResourcesShare Your Feedback
Learning Objectives

After completing this unit, you'll be able to:

  • Expose an Apex class as a REST service.
  • Test the service.

Concepts

Annotate a global class with @RestResource and its methods with @HttpGet, @HttpPost, and so on to expose them at /services/apexrest/.

Hands-On Challenge

  1. Create AccountManager at /Accounts/*/contacts.
  2. Return the account ID, name, and related contacts for a GET request.
  3. Write a test that sets RestContext.request.
Check ChallengeDemo check
Previous UnitApex SOAP CalloutsBack to Badge Apex Integration Services