Feature #27117

Base Distribution - Work Package #45088: Improved REST support

Bind routes to HTTP request methods

Added by Fernando Arconada over 10 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
MVC - Routing
Start date:
2011-05-29
Due date:
2013-04-13
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Routes need an option to be limited to certain HTTP methods:

Limit one route to a HTTP method as in Symfony
-
name: 'empresa actions'
uriPattern: 'empresa/{@action}(/{empresa})'
defaults:
'@package': Sifpe
'@controller': Empresa
'@action': list
'@format': json
requirements:
_method: POST|PUT

as in symfony2
http://symfony.com/doc/current/book/routing.html


Related issues

Related to TYPO3.Flow - Feature #27116: Routing: Declared variables only available in POST but not in GET regexpr signatureClosedBastian Waidelich2011-05-29

Actions
Related to TYPO3.Flow - Feature #28136: HTTP Semantics for Transactions and moreNew2011-07-12

Actions
Related to TYPO3.Flow - Feature #37604: Make Flow RestController useless by improving MVC stackResolvedBastian Waidelich2012-05-30

Actions

Also available in: Atom PDF