Using my own Joomla 1.5 component, module, or plugin, how would I turn a request for a REST URL like foo.com/api/...
into relevant echo()s on the page? I'm looking for a "hello, world"-level example, if possible.
For example, foo.com/api/baskets/10/fruits/list.json
might result in something like the following text on the page:
-- resource: baskets [id: 10]
-- resource: fruits [id: -]
-- action: list
-- format: json
Is that possible?