7

I hear 2013 will include some sort of REST API for delivery of content? I want to completely decouple my application and call REST services to retrieve the content blocks to compose a page.

Ideally I'd like to do that with some sort of URI base as well as request a block of content via TCM ID and get some JSON data back to then render in some way. Is this going to be possible?

12

You're 2 years late to the party then. The Tridion Content Delivery Service (REST, ODATA) has been available since Tridion 2011 GA, and there are already quite a few sites being built exactly as you want to.

Given Tridion's generic Content Model on the delivery tier, still expect to see "Content" as one of your data elements. As long as your templates in Tridion output JSON, then you will get JSON on the delivery tier too.

The beauty of it using ODATA is that:

  1. The API is actually pretty well documented
  2. There's a HUGE amount of client libraries out there.
  3. It will soon be an OASIS standard.

Almost forgot. For a full JSON response, make sure to add $format=json to all your requests.

3
  • Thanks. Is there a DD4T-esque delivery model for this? I would essentially like to create generic data blocks of arbitrary complexity which are simply the result of composition of components into a data structure which is transformed to JSON at the service endpoint - all templating and data visualisation activity should be the responsibility of the application domain (which could be an iOS app, a web site page, a syndication service, etc)
    – mpaton
    May 18 '13 at 0:17
  • I've heard of a company that actually modified DD4T to consume content from the ODATA Web Service instead of using the CD API. Don't know of other people, but since it's ODATA, there's a lot of stuff out there - and it doesn't have to be from Tridion.
    – Nuno Linhares
    May 18 '13 at 14:51
  • 5
    If you join the DD4T Discussion group here: groups.google.com/forum/?fromgroups#!forum/… the code for the DD4T OData provider has been posted there. It's not currently in the core framework. May 19 '13 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.