Modify http method 'POST' to 'PUT' for update actions

This commit is contained in:
huangtianhua 2015-01-26 10:39:01 +08:00
parent 444a027fa4
commit 47236f2297
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class API(wsgi.Router):
sub_mapper.connect("profile_update",
"/profiles/{profile_id}",
action="update",
conditions={'method': 'POST'})
conditions={'method': 'PUT'})
sub_mapper.connect("profile_delete",
"/profiles/{profile_id}",
action="delete",
@ -117,7 +117,7 @@ class API(wsgi.Router):
sub_mapper.connect("cluster_update",
"/clusters/{cluster_id}",
action="update",
conditions={'method': 'POST'})
conditions={'method': 'PUT'})
sub_mapper.connect("cluster_delete",
"/clusters/{cluster_id}",
action="delete",
@ -143,7 +143,7 @@ class API(wsgi.Router):
sub_mapper.connect("node_update",
"/nodes/{node_id}",
action="update",
conditions={'method': 'POST'})
conditions={'method': 'PUT'})
sub_mapper.connect("node_delete",
"/nodes/{node_id}",
action="delete",