Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Episode 11 building & exposing rest api in salesforce v1.0

633 views

Published on

How to create Rest API in Salesforce

Published in: Education
  • Be the first to comment

  • Be the first to like this

Episode 11 building & exposing rest api in salesforce v1.0

  1. 1. Path to Code Begin Your Salesforce Coding Adventure
  2. 2. Episode 11 Building & Exposing REST APIs in Salesforce
  3. 3. • Enterprise Solutions Architect • Global Community Speaker Jigar Shah @jigarshah189
  4. 4. Agenda • REST Fundamentals • Salesforce REST • Need for Apex REST • Understanding REST Annotations • Building & Exposing Apex REST Services • Apex REST Considerations • Q&A
  5. 5. Some Housekeeping Rules… • Mute your mic • Keep adding questions in Zoom Q&A Window • No questions are silly! • Questions will be answered in the last 15 mins of this session
  6. 6. Decoding REST Fundamentals Service Provider (Salesforce) Service Consumer HTTP / HTTPS 1. Header 2. Body 1. Who? 2. What? 3. Where? 4. How? REST URI 1 2 4 3
  7. 7. Salesforce REST Salesforce’s API first approach exposes features as RESTful Services also termed as Salesforce REST /services/data/v44.0/limits /services/data/v44.0/sobjects/query?q=select+id+from+Account /services/data/v44.0/sobjects/Account/0011U00000BgGjuQAF?fields=id,name ,type
  8. 8. Demo 1 Consuming Salesforce REST
  9. 9. Need for Apex REST • Perform complex processing logic • Return custom responses • Bulk record manipulation • Processing related objects
  10. 10. Understanding REST Annotations
  11. 11. Building Apex RESTful Services https://yourInstance.salesforce.com/services/apexrest/<RestUrlMapping>
  12. 12. Demo 2 Building RESTful Services in Apex
  13. 13. Apex REST Considerations • What can Apex REST receive and give back? • Security context of Apex REST Services • Including REST Services within Managed Packages
  14. 14. Resources  Exposing Apex Classes as REST Web Services  REST Controller Frameworks (Blog)  Json2Apex  cURL Download
  15. 15. Trailhead Modules Lightning Platform API Basics Apex Web Services
  16. 16. Q & A
  17. 17. Thank You
  18. 18. Subscribe

×