You can keep the existing route and use rewrite rules. The only gotcha is that for REST routes with HTML handling, one of the components (I don't remember which one) to generate a link was not following the reverse rules, but I fixed that a couple of months ago. The problem was only with HTML routing, for JSON, XML, whatever, it was not a problem.
One tricky thing to remember is that the REST is living under a different request handler (/ra) so make sure your rewrite rules will be ok with the other request handlers (/wo and /wa). > > now that it works, I love the WOnder URL transcoding I'm getting from app > pattern/replace property rules: > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/MyApp.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/a > > If I want to further shorten typical ERRest URLs, can/should I write > additional rules like? > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/Person > er.extensions.ERXApplication.replaceApplicationPath.replace=/p > > Or should I be providing new routes? > > I don't want to break my original, long URLs, so apache rewrites seem perfect > and I can update the URLs to shorter links in my clients over time. > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
