<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">1) Why do I see this error in SeaSide, and how do I fix it?&nbsp; I have the latest SeaSide running on latest Pharo 3 with Seaside-REST</div><div class=""><br class=""></div><div class=""><a href="http://localhost:8080/" class="">http://localhost:8080/</a></div><div class=""><br class=""></div><div class="">Error: you are forbidden to access “/"</div></div></div></blockquote><div><br class=""></div><div>There may be no default handler, or your REST service is the default and is not matching “/“</div><div><br class=""></div><div>Try:</div><div><br class=""></div><div><a href="http://localhost:8080/browse" class="">http://localhost:8080/browse</a></div><div><br class=""></div><div>or</div><div><br class=""></div><div><a href="http://localhost:8080/config" class="">http://localhost:8080/config</a></div><div><br class=""></div><div>which will allow you to set the default.</div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">2) I have a Seaside REST object &nbsp;that is not responding to the URL request below.</div><div class=""><br class=""></div><div class=""><a href="http://localhost:8080/weight/kg?lb=10" class="">http://localhost:8080/weight/kg?lb=10</a></div><div class=""><br class=""></div><div class="">I have the following class/instance configuration.&nbsp; Am I missing something else?</div><div class=""><br class=""></div><div class="">WARestfulHandler subclass: #WeightRestHandler</div><div class="">its class initialize method contains:</div><div class="">WAAdmin register: self at: self 'weight'.</div><div class=""><br class=""></div><div class="">And it has an instance method "weight" with following annotation:</div><div class=""><br class=""></div><div class="">&lt;get&gt;</div><div class="">&lt;produces: 'text/json'&gt;</div><div class="">&lt;path: '/{toUnit}?{fromUnit}={aNumber}’&gt;</div></div></blockquote><br class=""></div><div>you may need a method selector that defines the keywords toUnit, fromUnit and aNumber.</div><div><br class=""></div><div>ie.</div><div>weight: toUnit from: fromUnit value: aNumber</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;get&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;produces: ‘text/json’&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;path: '/{toUnit}?{fromUnit}={aNumber}’&gt;</div><div><br class=""></div><div>I’ve just started working with REST so let me know if it doesn’t work :)</div><div><br class=""></div><div>Cheers,</div><div><br class=""></div><div>Jupiter</div></body></html>