﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2784	extend URL resolver support for HTTP Methods	simon@…	Adrian Holovaty	"This patch introduces HTTP method support into the URL resolver allowing for easy creating of REST style applications.
At the urls file you can specify which view is supposed to respond to what HTTP method. Currently only POST,GET,PUT,DELETE are supported and those are specified in django.conf.urls.defaults

{{{

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Example:
    (r'^django_rest_urls/get/(?P<id>\d+)', 'django_rest_urls.restful.views.get'),
    (r'^django_rest_urls/(?P<id>\d+)', {
											'GET':		'django_rest_urls.restful.views.get',
											'POST':		'django_rest_urls.restful.views.post',
											'PUT':		'django_rest_urls.restful.views.put',
											'DELETE':	'django_rest_urls.restful.views.delete',
										}),

    # Uncomment this for admin:
#     (r'^admin/', include('django.contrib.admin.urls')),
)


}}}
"	enhancement	closed	Core (Other)	dev	normal	wontfix	HTTP Methods		Unreviewed	0	0	0	0	0	0
