<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 10:22 AM, Bill Moseley <span dir="ltr">&lt;<a href="mailto:moseley@hank.org">moseley@hank.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Quick question, and I hope this doesn&#39;t turn into a debate about REST specifics, just looking for a sane URL scheme.<div><br></div><div>Say I have an app for managing technical conferences.   There&#39;s one &quot;user&quot; table.  A &quot;user&quot;, of course, can be both a presenter and an attendee of sessions.  So, I want to get a list of sessions a user is associated with, but also want to get separate lists for sessions they are a presenter for vs. sessions they are just attending.</div>



<div><br></div><div>In the db there&#39;s  attendee_session and presenter_session link tables to associate users with the sessions.</div><div><br></div><div>This seems a bit ambiguous, plus not sure what to do if a user happens to be a presenter AND an attendee of the same session.</div>



<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>GET /user/1234/sessions </div></blockquote><div><br></div><div>And these seem wrong because the query parameter is about the user not the session.  That is, seems like any query parameters should be limiting on the session (e.g. session_type).</div>



<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>GET /user/1234/sessions?user_type=attendee</div><div>GET /user/1234/sessions?user_type=presenter </div>

</blockquote><div><br></div><div>Other options would be:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>GET /user/1234/sessions_attending</div>

<div>GET /user/1234/sessions_presenting</div></blockquote><div><br></div><div><br></div><div>What would you use?</div><div><br></div><font color="#888888"><div><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a><br>




</div>
</font><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br>I&#39;d personally use <meta charset="utf-8">/user/1234/sessions/attending and <meta charset="utf-8">/user/1234/sessions/presenting<br clear="all"><br>-- <br>Devin Austin<br><a href="http://www.codedright.net">http://www.codedright.net</a><br>

9702906669 - Cell<br>