title: Flask REST api resource URLs suggestions
body: <p>I'm working on REST Api suing Python Flask, as I have more and more routes, its hard to manage all the resource urls.</p>
  
  <p>Right now, I'm confused which one is better practices of URL parameters. Examples below:</p>
  
  <p>Get a list of courses with limits:
  <code>/courses/&lt;int:lim&gt;</code> OR <code>/courses/list?lim=10</code></p>
  
  <p>Get a specific course:
  <code>/courses/&lt;code&gt;/&lt;section&gt;</code> OR <code>/courses/show?code=cs100&amp;section=1</code></p>
  
  <p>Get a list of students in specific course:
  <code>/courses/&lt;code&gt;/&lt;section&gt;/students</code> OR <code>/students/show?code=cs100&amp;section=1</code></p>
  
  <p>Should I pass query parameters using <code>/</code> or by doing <code>?</code></p>
  
  <p>The only reason I'm using <code>/</code> is that there's no conflict in query.
  If I have these two URL for two different queries, how can I fix it so I can query base on the parameters:
  <code>/students/show?code=cs100&amp;section=1</code> (Get all students in that course)
  <code>/students/show?id=123456789</code> (Get the specific student)</p>