title: GET with and without parameter in flask-restful
body: <p>The following strikes me as inelegant but it works.  Is there a way to have flask-restful handle the two standard flavors of get (i.e. get everything and get one item) using <em>the same</em> resource class?</p>
  
  <p>Thanks.</p>
  
  <pre><code>from flask_restful import Resource
  # ...
  
  class People(Resource):
      def get(self):
          return [{'name': 'John Doe'}, {'name': 'Mary Canary'}]
  
  class Person(Resource):
      def get(self, id):
          return {'name': 'John Doe'}
  # ...
  
  api.add_resource(People, '/api/people')
  api.add_resource(Person,  '/api/people/&lt;string:id&gt;')
  </code></pre>