Thursday, 28 April 2016

WCF RestService over Broker API

Introduction 

This service is created to get data from SDL Tridion Broker Database using broker API ,currently this service is tested with SDL Tridion 2013 SP1  


In this service you will see many methods are exposed and message format JSON and XML output.

Methods which are available

  1. Get Components by SchemaID
  2. Get Page by URL
  3. Get Page by TcmId 
  4. Get ComponentPresentation By TcmId
  5. Get multipleComponentPresentation By TcmId 
  6. Get ComponentPresentation By PublishedDate
  7. Get ComponentPresentation By SchemaID







Example
To request a page from the Tridion broker.
http://domainname/Tridion2013SP1Provider.svc/GetPagebyUrl/{publicationId}/{format}?url={url} 
http://domainname/Tridion2013SP1Provider.svc/GetPagebyUrl/2073/xml?url=/Collection/index.aspx

You can download the code from here

Happy coding and keep sharing :)

No comments:

Post a Comment