|
News and Blog Postings from the EnterMedia DAM team.
REST API using JQuery for EnterMedia
EnterMedia now has the beginnings of a REST API using JQuery. Here is the start to the API we will have: http://entermediasoftware.com/docs/rest/index.html This XML based API is modeled after the Flickr API. We use jQuery since it easy to manipulate the resulting HTML with it. In the next steps we will show some search and edit examples. As of right now, we have only implemented retrieving the list of catalogs in EnterMedia, but it should be easy to extend and we plan on adding much more to the API in the near future. The following is an example where we load the generated catalog list into the selected DIV: Client Side<script type="text/javascript" src="/openedit/javascript/jquery-1.3.2.js"> jQuery.noConflict(); </script> Server SideThe server side is located in the entermedia/services/rest folder. Each client action has to match an xml file of the same name. For example in our above code we use 'listcatalogs' which corresponds to entermedia/services/rest/listcatalogs.xml. |