Loading tutorials
@RestResource class (covered in the previous chapter), know the HTTP verbs, and understand SOQL and DML. Here you will see how Salesforce picks the Apex method that handles a request.3 min read@RestResource class with an @HttpGet method, as in the previous chapters. It also assumes you know the basics of HTTP headers and status codes. Here you will look at the objects Apex gives you to read the incoming call and shape the reply.2 min read@RestResource class with at least one handler method, as in earlier chapters.2 min read@RestResource class, know how RestContext works, and understand JSON structure. Status codes and error handling come in the next chapter.2 min read@RestResource class, read RestContext.request, and use try/catch with DML. It covers how to tell a client what happened: which status code to set, what body to send, and how to keep unhandled exceptions from leaking.2 min read@RestResource class, know basic HTTP headers and status codes, and understand profiles and permission sets. It covers who can call your service and how they prove their identity. Record-level and field-level security inside the service is covered in the next c2 min read@RestResource class like the one from the earlier chapters.2 min read@IsTest and Assert, and that you have the AccountRestService class from the earlier chapters. You will test its handlers without any HTTP call.2 min read@RestResource class, you know HTTP methods and status codes, and you have a Salesforce org with My Domain enabled. You will call a deployed service with an OAuth access token and learn to find the cause when a call fails.3 min read@RestResource class with @HttpGet and @HttpPost methods. It also assumes you know how to set status codes on RestResponse. Here you design the contract those classes expose, and you plan for changing it without breaking callers.2 min read@RestResource class with @HttpGet and @HttpPost methods. It covers how governor limits apply to Apex REST and how to design endpoints that stay inside them.3 min read