« Previous | Next » 

Revision 0b629987

ID0b629987369565fb91c447511afdb962b68e3a80

Added by Bastian Waidelich over 8 years ago

[FEATURE] Bind routes to HTTP request methods

This change allows routes to be limited to certain request methods.
This is especially useful for REST services where you often need the
same URI to invoke different actions depending on the HTTP method.

Usage::

-
uriPattern: 'foo/bar'
defaults:
'@package': 'Some.Package'
'@controller': 'Standard'
'@action': 'first'
httpMethods: ['GET']
-
uriPattern: 'foo/bar'
defaults:
'@package': 'Some.Package'
'@controller': 'Standard'
'@action': 'second'
httpMethods: ['POST', 'PUT']

Change-Id: I1d53d20ac4675bc0cc4e58a33c08a656383f1a9f
Resolves: #27117
Releases: master, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted