everyone! I need to develop an API for a site written in django, but when I read the tastypie documentation, I got really confused. The documentation is as follows:
allowed_methodsControls what list & detail REST methods the Resource should respond to. Default is None, which means delegate to the more specific list_allowed_methods & detail_allowed_methods options. You may specify a list like ['get', 'post', 'put', 'delete'] as a shortcut to prevent having to specify the other options.
list_allowed_methodsControls what list REST methods the Resource should respond to. Default is ['get', 'post', 'put', 'delete'].
detail_allowed_methodsControls what list REST methods the Resource should respond to. Default is ['get', 'post', 'put', 'delete'].
According to this docs, the list_allowed_methods and detail_allowed_methods are exactly the same thing... Is there someone who can tell the difference between them? And what exactly each of them is used for?
Thanks in advance!