Hi Paul, I might be wrong but I think the rest module that is defined in that lab is still not in the product nor open-sourced.
After reading what is suggested by Geert you can use rewrite ( http://github.com/dscape/rewrite) to handle your rules. It's an community maintained open-source project based on the Ruby on Rails 3.0 routing. I can give you some help if you like - there's plenty of customers using it already. And if you feel like a feature is missing feel free to create an issue report. Nuno On Wed, May 25, 2011 at 2:09 PM, Williams, Paul < [email protected]> wrote: > Thanks Geert, I have a rewriter configured and working already in a simple > example app. But the apps we’ll be porting are much more complex and I am > hoping to use the RESTful convention that is portrayed in this lab ( > http://developer.marklogic.com/media/mluc11-labs/rest-rewriter/rewriter-lab.pdf). > Upon review, you’ll see a reference to a rest.xqy module that does the > dispatching work. I cannot find it. > > > > *Paul Williams* > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Geert Josten > *Sent:* Wednesday, May 25, 2011 4:55 PM > *To:* General MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic Dev General] REST API > > > > Hi Paul, > > > > Part of the solution is using the url rewriter option of http app servers. > That and more is explained in the application developer guide. Here a direct > link to the HTML section, the guide is also available as PDF: > > > > > http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/dev_guide/appserver-control.xml&query=rest+cat%3aguides%23pgfId-1059987 > > > > Kind regards, > > Geert > > > > *Van:* [email protected] [mailto: > [email protected]] *Namens *Williams, Paul > *Verzonden:* woensdag 25 mei 2011 22:46 > *Aan:* [email protected] > *Onderwerp:* [MarkLogic Dev General] REST API > > > > I’m researching options for implementing a URL rewriting pattern in a set > of applications being ported from eXist to MarkLogic. But I cannot find > much in the way of documentation on the native REST support that is now > available. I’ve read para 3.2 of the 4.1 Release Notes about URL Rewriting > and JSON support. But I cannot find a “REST API” module. > > > > I also saw a rewriting lab PDF from the User Conference that indicated the > existence of a rest.xqy module that defines rest:rewrite(). But I cannot > find any such module in my 4.2 installation. Can anyone point me to more > information about the “REST API”. > > > > TIA! > > > > *Paul Williams* > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
