<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi guys,</div><div><br></div><div>if you have this:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>RestfulHandler</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> |-UserHandler</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> |-PersonHandler</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> |-CompanyHandler</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> |-AlbumHandler</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> L_RecordHandler</div></div><div><br></div><div>and you want to access this:</div><div><br></div><div>api/</div><div>api/User</div><div>api/Person</div><div>apiCompany</div><div>api/Album</div><div>api/Record</div><div><br></div><div><b>how do you do that?</b></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><a href="http://about.me/sebastianconcept">sebastian</a></div><div><br></div><div>o/</div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>

<br><div>PS:&nbsp;What I've tried so far is to set a class-side #initialize on all of them to register an handler at everyone of those paths.&nbsp;</div><div><br></div><div>Example:</div><div><br></div><div>UserHandler class&gt;&gt;initialize</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>WAAdmin register: self at: self basePath,'/User'</div><div><br></div><div>#basePath returns 'api'.</div><div><br></div><div>The problem is that&nbsp;RestfulHandler also registers because there are some actions to be done in the path api/{action} and it causes some trouble. Registering this guy adds the handler at the root path and it seems that,&nbsp;in order to be able to register/handle the subpaths,&nbsp;seaside needs in the root path a dispatcher instead, so..?</div><div><br></div><div>PSS: It would be wonderful to just register 'api' and let the handler take care of every action with every pragma, the problem for that is that it won't scale well in complexity. The solution to that is to subclass that handler root class and perform the actions where matters, but I didn't figured out how that can be done in Seaside REST or if it's possible (if you have ideas on improving this I'd like to hear).</div></body></html>