title: Django rest framework reflect true REST API for function based view
body: <p>I have three models: A 'User' will have a 'Wishlist' and a 'Wishlist' will have many 'Books'.</p>
  
  <p>To perform CRUD operations on Wishlist, I am writing my URLs and corresponding views. Right now I have one url:</p>
  
  <pre><code>url(r'^wishlist/$', wishlist),
  </code></pre>
  
  <p>and a function: </p>
  
  <pre><code># Get specific user's wishlist
  @api_view(['GET', 'POST', 'PUT', 'DELETE'])
  def wishlist(request):
      """
      List all the books in wishlist of a specific user/Update/add/delete
      """
  
      if request.method == 'GET':
          books = Book.objects.filter(wishlist__user=request.user)
          serializer = BookSerializer(books, many=True)
          return Response(serializer.data) 
  
      elif request.method == 'POST':
          ... 
  
      elif request.method == 'PUT':
          ...
  
      elif request.method == 'DELETE':
          ... 
  </code></pre>
  
  <p><em>My question is</em>- having such one function with one url and all four methods is a correct way to build true REST API, or should I separate them? Considering for example, for <code>PUT</code> and <code>DELETE</code> methods, I perhaps also could send wishlist_id in the url and handle accordingly. In current code snippet, I will have to filter against <code>request.user</code> </p>