Getting Started

  • What is Trailhead
  • myTrailhead
  • Trailblazer Community
  • Career Growth

Learn

  • Trails
  • Trailmixes
  • Modules
  • Projects

Credentials

  • Superbadges
  • Certifications
  • Maintain Certifications

Salesforce

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

Apex Web Services

+700 Points~35 minsHands-On Challenge
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