FriendsOfSymfony/FOSRestBundle — Issue #194: Docs: default method PUT
Author: Dattaya
Created: 2012-03-09 09:50:46+00:00
State: open

Docs says: "All actions that do not match the ones listed in the sections above will register as a PUT action."
But it seems like the default method is `POST`:
Routing/Loader/Reader/RestActionReader.php:

```php
private function getCustomHttpMethod($httpMethod, array $resources, array $arguments)
{
if (in_array($httpMethod, $this->availableConventionalActions)) {
// allow hypertext as the engine of application state
// through conventional GET actions
return 'get';
} elseif (count($arguments) < count($resources)) {
// resource collection
return 'get';
} else {
//custom object
return 'post';
}
}
```

If it's true, I will send PR.