Well, I finally have a reason to actually write a web service, and so I'm finally getting a chance to play with Taffy. It's only been on the "I really want to play with this" list for a year now. ;-)
I'm having a little bit of difficulty getting everything setup and working properly, which means that I probably have something screwed up in my Apache config. I have gone through a wide variety of configurations, which I've successfully failed to track (sorry!). This is my current configuration, which has me pretty damn close.
<VirtualHost *:80>
ServerName taffytest
DocumentRoot /home/matt/webfun/taffytest/webroot
DirectoryIndex index.cfm
RewriteEngine On
# Redirect requests with "index.cfm" to root:
RewriteRule ^/index.cfm/([a-zA-Z0-9/-]+)$ /$1 [NS,R=301,L]
# If not a directory, rewrite to /index.cfm/foo:
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^([a-zA-Z0-9/-]+)$ /index.cfm%{REQUEST_URI} [PT]
ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://localhost:8039/$1$2
</VirtualHost>
I have also created a little test of my own at the root level (e.g.
http://taffytest/). I put in a quick little get test, and it returns the JSON string that I expect. YAY!
If I browse to
http://taffytest/examples/api/, I am redirected to /examples/api/?dashboard, and the dashboard appears nicely. YAY!
When I select "Mock Client" and enter `/artists` as the URI and hit [get], I am returned the wonderful Tomcat 404 error telling me that "The requested resource (/examples/api/index.cfm/artists) is not available." BOO!
Any idea what I am missing?