Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update id params on WADL to use more unique namespace, from callback.
  • Loading branch information
christianchristensen committed Oct 17, 2011
1 parent a54f3a4 commit a741f21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/rest_wadl_doc.inc
Expand Up @@ -178,7 +178,7 @@ function _build_update_method($def){
$method = array( //need to inject sub path here
DOM::ATTRIBUTES => array(
'name' => 'PUT',
'id' => $def['args'][0]['name'],
'id' => $def['callback'] . "-" . $def['args'][0]['name'],
),
WADL::DOC => $def['help'],
);
Expand Down Expand Up @@ -217,7 +217,7 @@ function _build_retrieve_method($def){
$method = array( //need to inject sub path here
DOM::ATTRIBUTES => array(
'name' => 'GET',
'id' => $def['args'][0]['name'],
'id' => $def['callback'] . "-" . $def['args'][0]['name'],
),
WADL::DOC => $def['help'],
);
Expand Down Expand Up @@ -245,7 +245,7 @@ function _build_delete_method($def){
$method = array(
DOM::ATTRIBUTES => array(
'name' => 'DELETE',
'id' => $def['args'][0]['name'],
'id' => $def['callback'] . "-" . $def['args'][0]['name'],
),
WADL::DOC => $def['help'],
);
Expand Down Expand Up @@ -282,7 +282,7 @@ function _build_create_method($def){
$method = array( //need to inject sub path here
DOM::ATTRIBUTES => array(
'name' => 'POST',
'id' => 'id',
'id' => $def['callback'] . "-" . 'id',
),
WADL::DOC => $def['help'],
);
Expand Down

0 comments on commit a741f21

Please sign in to comment.