Dear app developers,
In ownCloud 7 we've changed the name of the id parameter that was
generated using the resource shortcut syntax. This feature was
undocumented in ownCloud 6 and we hope that nothing was broken by this
change.
The routes generated by the resource keyword using:
|'resources' => array(
array('author' => array('url' => '/authors'))
),|
were changed from
|'routes' => array(
array('name' => 'author#index', 'url' => '/authors', 'verb' => 'GET'),
array('name' => 'author#show', 'url' => '/authors/{authorId}', 'verb' =>
'GET'),
array('name' => 'author#create', 'url' => '/authors', 'verb' => 'POST'),
array('name' => 'author#update', 'url' => '/authors/{authorId}', 'verb' =>
'PUT'),
array('name' => 'author#destroy', 'url' => '/authors/{authorId}', 'verb' =>
'DELETE'),
)
|
to
|'routes' => array(
array('name' => 'author#index', 'url' => '/authors', 'verb' => 'GET'),
array('name' => 'author#show', 'url' => '/authors/{id}', 'verb' => 'GET'),
array('name' => 'author#create', 'url' => '/authors', 'verb' => 'POST'),
array('name' => 'author#update', 'url' => '/authors/{id}', 'verb' => 'PUT'),
array('name' => 'author#destroy', 'url' => '/authors/{id}', 'verb' =>
'DELETE'),
)|
So instead of accessing the id by:
* resourceId
it will instead be available using:
* id
The reason and change can be viewed in the following pull request:
https://github.com/owncloud/core/pull/9228
_______________________________________________
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel