In my humble (and admittedly somewhat biased) opinion, one of the biggest strengths of the platform is its suite of APIs. These APIs allow you to integrate/mashup/enhance/mobilize applications built on the platform and the best part is that the API suite is like the US Federal debt – its constantly growing! Recently, we’ve added a Chatter REST API (excellent webinar recording available here), a Streaming API (make sure to register for the webinar on 7/7 here) and an Apex REST API.

Apex REST is a new Pilot feature in Summer 11, and we demoed it in the Summer 11 preview webinar that Dave Carroll and I did a couple of months back. The feature is important enough though to deserve its own turn in the spotlight and so Alex Toussaint (Product Manager for the API) and I will be hosting a webinar on 7/19 to review this new feature. Apex REST gives you the ability to expose any custom Apex code as a RESTful service that external clients (such as mobile devices) can invoke and consume. In other words, you can develop your own custom REST API using Apex and the full power of the platform. You can find some additional details about this feature in this blog post.

Here’s a small snippet from that blog entry to give you an idea of what an Apex REST class might look like:

As you can see, using some special new Apex annotations (@RestResource, @HttpGet etc.), you can expose custom Apex logic to clients that prefer to use the more lightweight REST/JSON protocols (instead of the SOAP/XML formats that is supported by another somewhat similar feature – Apex SOAP services).

Please join us on 7/19 by registering for either the 7am PDT or 10am PDT slot and find out more about the use cases, code samples and best practices for using Apex REST. Hope to see you then.

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS